/* ==========================================================================
   Required Screening Information & Agreement — Start page redesign
   Scoped to .start-page; preserves existing form IDs, names, and behavior.
   ========================================================================== */

/* --- Page shell & dark background ---------------------------------------- */

main:has(.start-page) {
    background-color: #fff;
}

.start-page {
    font-family: "Inter", "Segoe UI", sans-serif;
   color: #444;
    font-size: 16px;
    line-height: 1.7;
    padding-bottom: 56px;
}

.start-page__container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hide sidebar on this page for centered single-column layout */
.start-page__sidebar {
    display: none;
}

/* --- Breadcrumb / language toggle on dark background --------------------- */

.start-page .start-page__header {
    padding-top: 24px;
}

.start-page .start-page__header .link-bcgs {
    color: #567C52;
    border-bottom-color: #567C52;
}

.start-page .start-page__header .link-bcgs:hover {
    color: #456443 !important;
}

.start-page .start-page__header .text-teal {
    color: #A8C4A0 !important;
}

.start-page .start-page__header .breadcrumb {
    background: transparent;
    padding-left: 0;
}

.start-page .start-page__header .breadcrumb-item,
.start-page .start-page__header .breadcrumb-item a {
    color: #B0B0B0;
}

.start-page .start-page__header .breadcrumb-item.active {
    color: #F5F5F5;
}

.start-page .start-page__header .breadcrumb-item + .breadcrumb-item::before {
    color: #666;
}

.start-page .start-page__header a[onclick] {
    color: #B0B0B0;
}

/* --- Page title ---------------------------------------------------------- */

.start-page__title {
    font-size: 42px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin: 70px 0 40px;
    line-height: 1.2;
}

/* --- White cards --------------------------------------------------------- */

.start-card {
    background: #fff;
    border-radius: 0;
    padding: 48px;
    margin-bottom: 56px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #E7E7E7;
}

.start-card--agreement {
    margin-bottom: 56px;
}

/* Section headings inside cards */
.start-section-title {
    font-size: 34px;
    font-weight: 600;
    color: #2F2F2F;
    margin: 0 0 8px;
    line-height: 1.2;
}

.start-section-intro {
    font-size: 16px;
    color: #444;
    margin: 0 0 32px;
    line-height: 1.7;
}

.start-subsection-title {
    font-size: 34px;
    font-weight: 600;
    color: #2F2F2F;
    margin: 32px 0 8px;
    line-height: 1.2;
}

.start-subsection-intro {
    font-size: 16px;
    color: #444;
    margin: 0 0 20px;
    line-height: 1.7;
}

.start-form-group {
    margin-bottom: 32px;
}

.start-form-group:last-child {
    margin-bottom: 0;
}

.start-form-part2 {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #E7E7E7;
}

.start-label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
}

/* Override legacy .bcgs heading colors inside cards */
/* Override legacy .bcgs heading colors inside cards */
.start-page .start-card .bcgs h1,
.start-page .start-card .bcgs h2,
.start-page .start-card .bcgs h3 {
    color: #2F2F2F;
}

.start-card--agreement h2 {
    font-size: 34px;
    font-weight: 600;
    color: #2F2F2F;
    margin: 0 0 24px;
    line-height: 1.2;
}

/* --- Path options — square checkbox-style radios ------------------------- */

.start-path-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.start-path-option {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    min-height: 28px;
    cursor: pointer;
}

.start-path-option .start-path-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.start-path-option .start-path-indicator {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.start-path-option .start-path-indicator::after {
    content: "";
    display: none;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.start-path-option .start-path-input:checked + .start-path-indicator {
    background: #567C52;
    border-color: #567C52;
}

.start-path-option .start-path-input:checked + .start-path-indicator::after {
    display: block;
}

.start-path-option .start-path-input:focus + .start-path-indicator {
    border-color: #567C52;
    box-shadow: 0 0 0 3px rgba(86, 124, 82, 0.15);
}

.start-path-option .start-path-label {
    font-size: 16px;
    font-weight: 400;
    color: #444;
    line-height: 1.7;
    margin: 0;
    cursor: pointer;
}

.start-page .start-path-option .link-bcgs {
    color: #567C52;
    border-bottom-color: #567C52;
    font-size: 14px;
}

.start-page .start-path-option .link-bcgs:hover {
    color: #456443 !important;
}

/* --- Select dropdown ----------------------------------------------------- */

.start-select-wrap {
    max-width: 360px;
}

.start-select,
.start-page select.form-control.start-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 52px;
    padding: 0 44px 0 16px;
    font-size: 16px;
    font-family: inherit;
    color: #444;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.start-select:invalid,
.start-select option[value=""]:checked,
.start-page select.start-select option:first-child {
    color: #A6A6A6;
}

.start-select:focus,
.start-page select.start-select:focus {
    outline: none;
    border-color: #567C52;
    box-shadow: 0 0 0 3px rgba(86, 124, 82, 0.15);
}

/* --- Yes / No radio buttons ---------------------------------------------- */

.start-radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.start-radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    min-height: 24px;
    cursor: pointer;
}

.start-radio-option .start-radio-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.start-radio-option .start-radio-indicator {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #D9D9D9;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.start-radio-option .start-radio-indicator::after {
    content: "";
    display: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #567C52;
}

.start-radio-option .start-radio-input:checked + .start-radio-indicator {
    border-color: #567C52;
}

.start-radio-option .start-radio-input:checked + .start-radio-indicator::after {
    display: block;
}

.start-radio-option .start-radio-input:focus + .start-radio-indicator {
    box-shadow: 0 0 0 3px rgba(86, 124, 82, 0.15);
}

.start-radio-option .start-radio-label {
    font-size: 16px;
    color: #444;
    margin: 0;
    cursor: pointer;
}

.start-question {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 32px 0 20px;
    line-height: 1.5;
}

/* --- Data Collection Agreement card -------------------------------------- */

.start-card--agreement ul {
    margin: 24px 0 0;
    padding-left: 1.25em;
    max-width: 920px;
}

.start-card--agreement li {
    margin-bottom: 12px;
    padding-left: 4px;
    line-height: 1.7;
    color: #444;
}

.start-card--agreement li:last-child {
    margin-bottom: 0;
}

.start-card--agreement p {
    line-height: 1.7;
    color: #444;
}

/* --- Validation messages ------------------------------------------------- */

.start-page .text-danger {
    display: block;
    margin-top: 8px;
    font-size: 14px;
}

.start-validation-block {
    margin-top: 8px;
    margin-bottom: 0;
}

/* --- Action buttons ------------------------------------------------------ */

.start-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    margin-bottom: 56px;
}

.start-actions__primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-left: auto;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-transform: none;
    white-space: nowrap;
}

.start-btn--primary {
    background: #6E8D61;
    color: #fff;
    border: none;
}

.start-btn--primary:hover,
.start-btn--primary:focus {
    background: #5D7A53;
    color: #fff;
}

.start-btn--secondary {
    background: transparent;
    color: #4F714B;
    border: 2px solid #4F714B;
}

.start-btn--secondary:hover,
.start-btn--secondary:focus {
    background: #EEF4EC;
    color: #4F714B;
}

.start-btn--exit {
    background: transparent;
    color: #888;
    border: 2px solid #ccc;
}

.start-btn--exit:hover,
.start-btn--exit:focus {
    background: #f5f5f5;
    color: #666;
}

.start-btn:focus-visible {
    outline: 2px solid #567C52;
    outline-offset: 2px;
}

/* --- Modal (preserve existing modal, soften for new palette) ------------- */

.start-page .modal-content {
    border-radius: 0;
}

.start-page .modal-body.bcgs h3 {
    color: #2F2F2F;
}

/* --- Responsive: tablet -------------------------------------------------- */

@media (max-width: 991px) {
    .start-card {
        padding: 32px;
    }

    .start-page__title {
        font-size: 36px;
        margin-top: 48px;
    }

    .start-section-title,
    .start-subsection-title,
    .start-card--agreement h2 {
        font-size: 28px;
    }
}

/* --- Responsive: mobile -------------------------------------------------- */

@media (max-width: 767px) {
    .start-page__container {
        padding: 0 16px;
    }

    .start-card {
        padding: 24px;
        margin-bottom: 24px;
    }

    .start-page__title {
        font-size: 28px;
        margin-top: 32px;
        margin-bottom: 24px;
    }

    .start-section-title,
    .start-subsection-title,
    .start-card--agreement h2 {
        font-size: 24px;
    }

    .start-select-wrap {
        max-width: 100%;
    }

    .start-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .start-actions__primary {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
    }

    .start-btn {
        width: 100%;
        min-height: 48px;
    }
}
