/* ============================================================
   JOB-POSTING.CSS
   Job-posting-specific styles for the new design system.
   Extracted from ks_job_postings.css + ks_new.css.
   Does NOT redefine .ks-btn (uses kidsitter.css buttons).
   ============================================================ */

/* Body class used by job pages */
.ks-body {
    font-family: 'Open Sans', sans-serif;
    color: #4f5b67;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ============================================================
   1. PROGRESS BAR / STEP INDICATOR
   ============================================================ */
.ks-progress {
    background-color: #ffffff;
    border-bottom: 1px solid #dee4e8;
}

.ks-progress__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem;
}

.ks-progress__steps {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.ks-progress__step {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.ks-progress__step:last-child {
    -webkit-box-flex: 0;
    -webkit-flex: 0;
    -ms-flex: 0;
    flex: 0;
}

.ks-progress__step-indicator {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.ks-progress__circle {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.ks-progress__circle--active {
    background-color: var(--ks-primary);
    color: #ffffff;
}

.ks-progress__circle--completed {
    background-color: var(--ks-primary);
    color: #ffffff;
}

.ks-progress__circle--inactive {
    background-color: #edf1f4;
    color: #808d99;
}

.ks-progress__label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.ks-progress__label--active {
    color: #4f5b67;
}

.ks-progress__label--inactive {
    color: #808d99;
}

.ks-progress__line {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    height: 2px;
    margin: 0 1rem;
}

.ks-progress__line--completed {
    background-color: var(--ks-primary);
}

.ks-progress__line--pending {
    background-color: #edf1f4;
}

@media (max-width: 767px) {
    .ks-progress__label {
        display: none;
    }
    .ks-progress__line {
        margin: 0 0.5rem;
    }
}


/* ============================================================
   2. POST JOB - SHARED LAYOUT
   ============================================================ */
.ks-postjob {
    min-height: 100vh;
    background-color: #f0f4f6;
}

.ks-postjob__content {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.ks-postjob__card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid var(--ks-border);
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .ks-postjob__card {
        padding: 2rem;
    }
}

.ks-postjob__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f5b67;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.5rem;
}

.ks-postjob__subheading {
    color: #808d99;
    font-size: 1rem;
}

.ks-postjob__nav {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 1.5rem;
}


/* ============================================================
   3. STEP 1 - CARE TYPE SELECTION
   ============================================================ */
.ks-caretype-grid {
    overflow: hidden;
    margin-left: -0.375rem;
    margin-right: -0.375rem;
}

.ks-caretype-btn {
    float: left;
    width: calc(33.333% - 0.75rem);
    min-height: 6.5rem;
    margin: 0.375rem;
    box-sizing: border-box;
    border-radius: 0.75rem;
    border: 2px solid var(--ks-border);
    background-color: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    padding: 0.75rem 0.5rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.ks-caretype-btn:hover {
    border-color: rgba(51, 181, 166, 0.5);
}

.ks-caretype-btn--selected {
    border-color: var(--ks-primary);
    background-color: rgba(51, 181, 166, 0.05);
}

@media (min-width: 768px) {
    .ks-caretype-btn {
        width: calc(20% - 0.75rem);
        min-height: 7rem;
    }
}

.ks-caretype-btn__icon-wrap {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    transition: background-color 0.2s;
}

.ks-caretype-btn__icon-wrap--active {
    background-color: var(--ks-primary);
    color: #ffffff;
}

.ks-caretype-btn__icon-wrap--inactive {
    background-color: #edf1f4;
    color: #808d99;
}

.ks-caretype-btn__icon-wrap i,
.ks-caretype-btn__icon-wrap svg {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

.ks-caretype-btn__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4f5b67;
    line-height: 1.3;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    padding: 0 0.125rem;
}

.ks-caretype-selected-count {
    text-align: center;
    font-size: 0.875rem;
    color: #808d99;
    margin-top: 1rem;
}


/* ============================================================
   4. STEP 2 - LOCATION
   ============================================================ */
.ks-location-form > * {
    margin-bottom: 1rem;
}

.ks-location-form > *:last-child {
    margin-bottom: 0;
}

.ks-location-form .ks-input--postcode {
    padding-left: 2.5rem;
    height: 3rem;
    font-size: 1rem;
}

.ks-privacy-notice {
    background-color: rgba(237, 241, 244, 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.ks-privacy-notice > *:first-child {
    margin-right: 0.75rem;
}

.ks-privacy-notice__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: rgba(51, 181, 166, 0.1);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    flex-shrink: 0;
}

.ks-privacy-notice__icon i { color: var(--ks-primary); }
.ks-privacy-notice__title { font-size: 0.875rem; font-weight: 500; color: #4f5b67; }
.ks-privacy-notice__text { font-size: 0.75rem; color: #808d99; margin-top: 0.125rem; }


/* ============================================================
   5. STEP 3 - SCHEDULE
   ============================================================ */
.ks-schedule-type-grid {
    overflow: hidden;
    margin-left: -0.375rem;
    margin-right: -0.375rem;
}

.ks-schedule-type-btn {
    float: left;
    width: 50%;
    box-sizing: border-box;
    padding: 1rem;
    margin: 0;
    border-radius: 0.75rem;
    border: 2px solid var(--ks-border);
    background-color: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ks-schedule-type-grid .ks-schedule-type-btn {
    width: calc(50% - 0.75rem);
    margin: 0 0.375rem;
}

.ks-schedule-type-btn:hover {
    border-color: rgba(51, 181, 166, 0.5);
    transform: scale(1.02);
}

.ks-schedule-type-btn--selected {
    border-color: var(--ks-primary);
    background-color: rgba(51, 181, 166, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.ks-schedule-type-btn__icon { width: 1.25rem; height: 1.25rem; margin-bottom: 0.5rem; color: #808d99; }
.ks-schedule-type-btn--selected .ks-schedule-type-btn__icon { color: var(--ks-primary); }
.ks-schedule-type-btn__title { font-size: 0.875rem; font-weight: 600; color: #4f5b67; display: block; }
.ks-schedule-type-btn__desc { font-size: 0.75rem; color: #808d99; display: block; }

/* Day Selector */
.ks-day-selector {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

.ks-day-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin: 0.25rem;
}

.ks-day-btn--active { background-color: var(--ks-primary); color: #ffffff; }
.ks-day-btn--inactive { background-color: #edf1f4; color: #808d99; }
.ks-day-btn--inactive:hover { background-color: #dde2e6; }

/* Time Slot Selector */
.ks-timeslot-grid {
    overflow: hidden;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

.ks-timeslot-btn {
    float: left;
    width: 33.333%;
    box-sizing: border-box;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--ks-border);
    background-color: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ks-timeslot-grid .ks-timeslot-btn {
    width: calc(33.333% - 0.5rem);
    margin: 0 0.25rem 0.5rem;
}

.ks-timeslot-btn:hover { border-color: rgba(51, 181, 166, 0.5); }
.ks-timeslot-btn--selected { border-color: var(--ks-primary); background-color: rgba(51, 181, 166, 0.05); }
.ks-timeslot-btn__icon { width: 1rem; height: 1rem; margin: 0 auto 0.25rem; display: block; }
.ks-timeslot-btn--selected .ks-timeslot-btn__icon { color: var(--ks-primary); }
.ks-timeslot-btn--selected .ks-timeslot-btn__label { color: var(--ks-primary); }
.ks-timeslot-btn__icon--inactive { color: #808d99; }
.ks-timeslot-btn__label { font-size: 0.75rem; font-weight: 500; color: #808d99; }
.ks-field-hint { font-size: 0.75rem; color: #808d99; margin-top: 0.25rem; }


/* ============================================================
   6. STEP 4 - REVIEW
   ============================================================ */
.ks-review-section {
    background-color: rgba(237, 241, 244, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.ks-review-section__header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ks-review-section__title {
    font-weight: 600;
    color: #4f5b67;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 1rem;
}

.ks-review-section__title i { color: var(--ks-primary); margin-right: 0.5rem; }

.ks-review-section__edit-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #4f5b67;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.375rem;
    font-family: inherit;
    text-decoration: none;
}

.ks-review-section__edit-btn i { margin-right: 0.25rem; }
.ks-review-section__edit-btn:hover { background-color: #edf1f4; text-decoration: none; color: #4f5b67; }

.ks-review-tags {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -0.25rem;
}

.ks-review-tags > * { margin: 0.25rem; }

.ks-review-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.ks-review-tag i { margin-right: 0.375rem; }
.ks-review-tag--primary { background-color: rgba(51, 181, 166, 0.1); color: var(--ks-primary); }
.ks-review-tag--accent { background-color: rgba(232, 138, 60, 0.1); color: var(--ks-accent); }
.ks-review-tag--sm { padding: 0.125rem 0.5rem; font-size: 0.75rem; }
.ks-review-tag--lg { padding: 0.5rem 1.125rem; font-size: 1rem; font-weight: 600; }

.ks-review-schedule { font-size: 0.875rem; }
.ks-review-schedule__label { font-size: 0.75rem; color: #808d99; margin-bottom: 0.375rem; }

.ks-review-notes {
    background-color: rgba(237, 241, 244, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.ks-review-notes__title { font-weight: 600; color: #4f5b67; font-size: 0.875rem; margin-bottom: 0.5rem; }
.ks-review-notes__text { font-size: 0.875rem; color: #808d99; }

.ks-auth-gate {
    background-color: rgba(232, 138, 60, 0.1);
    border: 1px solid rgba(232, 138, 60, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.ks-auth-gate__text { font-size: 0.875rem; font-weight: 500; color: var(--ks-accent); }


/* ============================================================
   7. FORM ELEMENTS (job-specific)
   ============================================================ */
.ks-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4f5b67;
    display: block;
    margin-bottom: 0.5rem;
}

.ks-label .required { color: #ef4444; }

.ks-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4f5b67;
    background-color: #ffffff;
    border: 1px solid var(--ks-border);
    border-radius: 0.375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.ks-input:focus {
    border-color: var(--ks-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(51, 181, 166, 0.2);
}

.ks-input::-webkit-input-placeholder { color: #808d99; }
.ks-input:-moz-placeholder { color: #808d99; }
.ks-input::-moz-placeholder { color: #808d99; }
.ks-input:-ms-input-placeholder { color: #808d99; }

.ks-input--lg { padding: 0.75rem 0.75rem; font-size: 1rem; height: 3rem; }
.ks-input--icon { padding-left: 2.5rem; }

.ks-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4f5b67;
    background-color: #ffffff;
    border: 1px solid var(--ks-border);
    border-radius: 0.375rem;
    resize: none;
    min-height: 80px;
    font-family: inherit;
}

.ks-textarea:focus {
    border-color: var(--ks-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(51, 181, 166, 0.2);
}

.ks-input-group { position: relative; }

.ks-input-group__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #808d99;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
}

.ks-help-text { font-size: 0.75rem; color: #808d99; margin-top: 0.25rem; }


/* ============================================================
   8. MY JOBS PAGE
   ============================================================ */
.ks-myjobs {
    min-height: 100vh;
    background-color: #ffffff;
}

.ks-myjobs__content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.ks-myjobs__header { margin-bottom: 1.5rem; }

@media (min-width: 768px) {
    .ks-myjobs__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .ks-myjobs__header .ks-btn { margin-top: 1rem; }
}

.ks-myjobs__title { font-size: 1.5rem; font-weight: 700; color: #4f5b67; font-family: 'Montserrat', sans-serif; }
.ks-myjobs__subtitle { color: #808d99; margin-top: 0.25rem; }

/* Status Filter Pills */
.ks-filter-pills {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

.ks-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--ks-border);
    background-color: transparent;
    color: #4f5b67;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin: 0.25rem;
}

.ks-filter-pill:hover { background-color: #edf1f4; }
.ks-filter-pill--active { background-color: var(--ks-primary); color: #ffffff; border-color: var(--ks-primary); }
.ks-filter-pill__count { margin-left: 0.375rem; font-size: 0.75rem; opacity: 0.7; }

/* Job Card */
.ks-job-card {
    background-color: #ffffff;
    border: 1px solid var(--ks-border);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ks-job-card__inner { padding: 1rem; }

@media (min-width: 768px) {
    .ks-job-card__inner { padding: 1.5rem; }
}

.ks-job-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.ks-job-card__top > *:first-child { margin-right: 1rem; }

.ks-job-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ks-job-card__title-row > * { margin-right: 0.5rem; }
.ks-job-card__title { font-size: 1.125rem; font-weight: 600; color: #4f5b67; }

.ks-job-card__caretypes {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    margin-left: -0.1875rem;
}

.ks-job-card__caretypes > * { margin: 0.1875rem; }

.ks-job-card__details { overflow: hidden; font-size: 0.875rem; color: #808d99; }

.ks-job-card__detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .ks-job-card__detail-item { float: left; width: 50%; }
}

.ks-job-card__detail-item i { width: 1rem; margin-right: 0.5rem; flex-shrink: 0; }

.ks-job-card__applicants-link {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background-color: var(--ks-primary);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.ks-job-card__applicants-link:hover { background-color: var(--ks-primary-hover); color: #ffffff; text-decoration: none; }

.ks-job-card__dates { display: flex; flex-wrap: wrap; margin-top: 0.75rem; font-size: 0.75rem; color: #808d99; }
.ks-job-card__dates > * { margin-right: 1rem; }

.ks-job-card__actions-btn {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    color: #4f5b67;
}

.ks-job-card__actions-btn:hover { background-color: #edf1f4; }

.ks-job-card--empty { padding: 3rem 1rem; text-align: center; }
.ks-job-card--empty p { color: #808d99; margin-bottom: 1rem; }


/* ============================================================
   9. JOB APPLICANTS PAGE
   ============================================================ */
.ks-applicants { min-height: 100vh; background-color: #ffffff; }
.ks-applicants__content { max-width: 72rem; margin: 0 auto; padding: 1rem; }

@media (min-width: 768px) {
    .ks-applicants__content { padding: 1.5rem 1rem; }
}

.ks-applicants__back-btn {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    margin-left: -0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    color: #4f5b67;
    background: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.ks-applicants__back-btn i { margin-right: 0.5rem; }
.ks-applicants__back-btn:hover { background-color: #edf1f4; text-decoration: none; color: #4f5b67; }
.ks-applicants__title { font-size: 1.5rem; font-weight: 700; color: #4f5b67; font-family: 'Montserrat', sans-serif; }
.ks-applicants__subtitle { color: #808d99; margin-top: 0.25rem; }
.ks-applicants__list { margin-top: 1.5rem; }
.ks-applicants__list > * { margin-bottom: 1rem; }


/* ============================================================
   10. MODAL / CONFIRM DIALOG
   ============================================================ */
.ks-dialog-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
}

.ks-dialog-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ks-dialog {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 28rem;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.ks-dialog__title { font-size: 1.125rem; font-weight: 600; color: #4f5b67; margin-bottom: 0.5rem; }
.ks-dialog__text { font-size: 0.875rem; color: #808d99; margin-bottom: 1.5rem; }
.ks-dialog__actions { display: flex; justify-content: flex-end; }
.ks-dialog__actions > * { margin-left: 0.5rem; }
.ks-dialog__actions > *:first-child { margin-left: 0; }


/* ============================================================
   11. ALERT / INFO BOX
   ============================================================ */
.ks-alert {
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.ks-alert > * { margin-left: 0.75rem; }
.ks-alert > *:first-child { margin-left: 0; }
.ks-alert--info { background-color: #edf1f4; }
.ks-alert--accent { background-color: rgba(232, 138, 60, 0.1); border: 1px solid rgba(232, 138, 60, 0.3); }

.ks-alert__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: rgba(51, 181, 166, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ks-alert__icon i { color: var(--ks-primary); }
.ks-alert__title { font-size: 0.875rem; font-weight: 500; color: #4f5b67; }
.ks-alert__text { font-size: 0.75rem; color: #808d99; margin-top: 0.125rem; }


/* ============================================================
   12. BADGES (job-specific status variants)
   ============================================================ */
.ks-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid transparent;
}

.ks-badge--default { background-color: var(--ks-primary); color: #ffffff; }
.ks-badge--secondary { background-color: #f0f4f6; color: #4f5b67; }
.ks-badge--destructive { background-color: #ef4444; color: #ffffff; }
.ks-badge--outline { background-color: transparent; color: #4f5b67; border-color: var(--ks-border); }
.ks-badge--active { background-color: #22c55e; color: #ffffff; }
.ks-badge--expired { background-color: #ef4444; color: #ffffff; }
.ks-badge--filled { background-color: #f0f4f6; color: #4f5b67; }
.ks-badge--draft { background-color: transparent; color: #4f5b67; border-color: var(--ks-border); }
.ks-badge--cancelled { background-color: transparent; color: #4f5b67; border-color: var(--ks-border); }
.ks-badge--awaiting-approval { background-color: #f59e0b; color: #ffffff; }
.ks-badge--paused { background-color: #f0f4f6; color: #4f5b67; }
.ks-badge--published { background-color: transparent; color: #4f5b67; border-color: var(--ks-border); }


/* ============================================================
   13. CARE TYPE TAG COLORS (job-specific)
   ============================================================ */
.ks-tag--babysitter    { background-color: #fce7f3; color: #db2777; }
.ks-tag--nanny         { background-color: rgba(51, 181, 166, 0.1); color: var(--ks-primary); }
.ks-tag--tutor         { background-color: #dbeafe; color: #2563eb; }
.ks-tag--au-pair       { background-color: #f3e8ff; color: #9333ea; }
.ks-tag--childminder   { background-color: #fef3c7; color: #d97706; }
.ks-tag--maternity     { background-color: #ffe4e6; color: #e11d48; }
.ks-tag--helper        { background-color: #d1fae5; color: #059669; }
.ks-tag--housekeeper   { background-color: #cffafe; color: #0891b2; }
.ks-tag--elder-care    { background-color: #e0e7ff; color: #4f46e5; }


/* ============================================================
   14. RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 480px) {
    .ks-postjob__card { padding: 1rem; }
    .ks-postjob__heading { font-size: 1.25rem; }

    .ks-timeslot-grid .ks-timeslot-btn {
        width: calc(33.333% - 0.375rem);
        margin: 0 0.1875rem 0.375rem;
    }

    .ks-day-btn { width: 2.5rem; height: 2.5rem; font-size: 0.8125rem; }
    .ks-job-card__title { font-size: 1rem; }
}
