/* ==========================================================================
   opt-out-request.css - loaded only on /opt-out-request (after common.css).
   Figma SMKnqbe2iCuvfPjk7hlEBv (cached in docs/figma/):
   Desktop 400:3131, error state 401:3880 | Mobile 400:3381, error 401:4546
   ========================================================================== */

body {
    background: #FBFCFE;
}

/* ---------- Hero (page wrapper over the shared .hero-section shell) ---------- */
.optout-page .hero-section.optout-hero {
    height: auto !important;
    min-height: 360px !important;
    padding: 176px 20px 92px !important;
    text-align: center;
}
.optout-hero-text {
    max-width: 800px;
    margin: 0 auto;
}
.optout-page .optout-hero h1 {
    margin: 0 0 16px !important;
    padding: 0 !important;
    font-size: 48px !important;
    line-height: 52px !important;
    font-weight: 700;
    color: #FFFFFF !important;
}
.optout-hero-text p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #FFFFFF;
}

/* ---------- Card ---------- */
.optout-band {
    padding: 60px 20px 80px;
}
.optout-card {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 7px 14.5px rgba(100, 100, 111, 0.16);
}
.optout-card form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.optout-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #D6DFEB;
}
.optout-section-last {
    padding-bottom: 0;
    border-bottom: 0;
    margin-bottom: 10px;
}
.optout-intro {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #455365;
    text-align: center;
}

/* ---------- Upload box ---------- */
.optout-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px 120px;
    background: #F5F8FC;
    border: 2px dashed #C3DFFE;
    border-radius: 14px;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.optout-upload-box.is-dragover {
    border-color: #006BFF;
}
.optout-upload-box.is-invalid {
    background: #FFF7F7;
    border-color: #FFC4C4;
}
.optout-choose-btn {
    margin: 0;
    padding: 12px 20px;
    background: #006BFF;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    color: #FFFFFF;
    cursor: pointer;
}
.optout-choose-btn:hover {
    background: #0056D6;
}
.optout-upload-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.optout-upload-text p {
    margin: 0;
}
.optout-upload-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #071A31;
}
.optout-upload-sub {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    color: #455365;
}
.optout-file-error {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: #FF2525;
}
.optout-file-error:empty {
    display: none;
}
.optout-preview img {
    display: block;
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
}

/* ---------- Fields ---------- */
.optout-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.optout-label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #071A31;
}
.optout-input,
.optout-select,
.optout-textarea {
    width: 100%;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid #D6DFEB;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: #071A31;
    outline: none;
    transition: border-color 0.15s ease;
}
.optout-input::placeholder {
    color: #8E8C95;
}
.optout-textarea::placeholder {
    color: #6A7584;
}
.optout-input:focus,
.optout-select:focus,
.optout-textarea:focus {
    border-color: #006BFF;
}
.optout-select {
    height: 48px;
    padding-right: 42px;
    appearance: none;
    -webkit-appearance: none;
    background: #FFFFFF url('../images/optout-dmca/select-chevron.svg') no-repeat right 16px center / 10px 5px;
    cursor: pointer;
}
.optout-select:invalid,
.optout-select:has(option[value=""]:checked) {
    color: #6A7584;
}
.optout-textarea-wrap {
    position: relative;
}
.optout-textarea {
    display: block;
    height: 126px;
    padding: 16px 16px 32px;
    resize: none;
}
.optout-counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    color: #6A7584;
    pointer-events: none;
}
.optout-input.is-invalid,
.optout-select.is-invalid,
.optout-textarea.is-invalid {
    border-color: #FF2525;
}
.optout-field-error {
    display: none;
    margin-top: -6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: #FF2525;
}
.optout-field-error.is-visible {
    display: block;
}

.optout-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    color: #071A31;
}
.optout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* ---------- Checkboxes (Figma checkbox SVGs as backgrounds) ---------- */
.optout-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.optout-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: -0.13px;
    color: #455365;
    cursor: pointer;
}
.optout-checkbox {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: url('../images/optout-dmca/checkbox-empty-20.svg') no-repeat center / 20px 20px;
    cursor: pointer;
}
.optout-checkbox:checked {
    background-image: url('../images/optout-dmca/checkbox-checked-20.svg');
}
.optout-checkbox:focus-visible {
    outline: 2px solid #006BFF;
    outline-offset: 2px;
    border-radius: 6px;
}
.optout-check-item.is-invalid {
    color: #FF2525;
}
.optout-check-item.is-invalid .optout-checkbox:not(:checked) {
    background-image: url('../images/optout-dmca/checkbox-danger-20.svg');
}
.optout-required-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-top: -4px;
    padding: 10px 15px;
    background: #E7F1FE;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    color: #071A31;
}
.optout-required-pill img {
    flex-shrink: 0;
}

.optout-submit-btn {
    align-self: flex-start;
    width: 188px;
    padding: 15px 0;
    background: #071A31;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    color: #FFFFFF;
    cursor: pointer;
}
.optout-submit-btn:hover {
    background: #13294E;
}
.optout-submit-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ---------- Server alerts ---------- */
.optout-alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 20px;
}
.optout-alert ul {
    margin: 0;
    padding-left: 18px;
}
.optout-alert .optout-reselect-note {
    margin: 6px 0 0;
}
.optout-alert-success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}
.optout-alert-danger {
    background: #FFF7F7;
    border: 1px solid #FFC4C4;
    color: #D61F1F;
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .optout-page .hero-section.optout-hero {
        margin: 14px 10px 0 !important;
        padding: 120px 20px 50px !important;
        min-height: 0 !important;
    }
    .optout-page .optout-hero h1 {
        font-size: 36px !important;
        line-height: 42px !important;
    }
    .optout-upload-box {
        padding: 30px;
    }
}
@media (max-width: 767px) {
    .optout-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Mobile (Figma 320 frames) ---------- */
@media (max-width: 667px) {
    .optout-page .hero-section.optout-hero {
        margin: 10px 10px 0 !important;
        padding: 78px 10px 40px !important;
        min-height: 0 !important;
        border-radius: 24px;
    }
    .optout-page .optout-hero h1 {
        margin: 0 0 10px !important;
        font-size: 20px !important;
        line-height: 26px !important;
    }
    .optout-hero-text p {
        font-size: 11px;
        font-weight: 400;
        line-height: 16px;
    }

    .optout-band {
        padding: 20px 15px 40px;
    }
    .optout-card {
        padding: 15px;
        border-radius: 16px;
    }
    .optout-card form,
    .optout-section {
        gap: 15px;
    }
    .optout-section {
        padding-bottom: 15px;
    }
    .optout-section-last {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .optout-intro {
        font-size: 11px;
    }
    .optout-upload-box {
        gap: 12px;
        padding: 30px;
        border-radius: 12px;
    }
    .optout-choose-btn {
        padding: 13px 40px;
        font-size: 11px;
    }
    .optout-upload-text {
        max-width: 200px;
    }
    .optout-upload-title {
        font-size: 12px;
        line-height: 16px;
    }
    .optout-upload-sub {
        font-size: 10px;
        line-height: 14px;
    }
    .optout-file-error {
        margin-top: 6px !important;
        font-size: 11px;
        line-height: 14px;
    }
    .optout-field {
        gap: 10px;
    }
    .optout-label {
        font-size: 11px;
        line-height: 14px;
    }
    .optout-input,
    .optout-select,
    .optout-textarea {
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 11px;
        line-height: 14px;
    }
    .optout-select {
        height: 40px;
    }
    .optout-textarea {
        height: 100px;
        padding: 12px 12px 28px;
    }
    .optout-counter {
        right: 12px;
        bottom: 12px;
        font-size: 10px;
        line-height: 14px;
    }
    .optout-field-error {
        margin-top: -4px;
        font-size: 10px;
        line-height: 14px;
    }
    .optout-title {
        font-size: 14px;
        line-height: 18px;
    }
    .optout-grid {
        gap: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #D6DFEB;
    }
    .optout-check-item {
        gap: 6px;
        font-size: 11px;
        line-height: 16px;
        letter-spacing: 0;
        /* 40px tap area for one-line rows; the negative margin keeps the spacing */
        padding: 12px 0;
        margin: -12px 0;
    }
    /* 18px box drawn in the middle of a 40px tap area; the negative margin keeps the layout */
    .optout-checkbox {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        padding: 11px;
        margin: -11px;
        background-image: url('../images/optout-dmca/checkbox-empty-18.svg');
        background-size: 18px 18px;
    }
    .optout-checkbox:focus-visible {
        outline-offset: -9px;
    }
    .optout-checkbox:checked {
        background-image: url('../images/optout-dmca/checkbox-checked-18.svg');
    }
    .optout-check-item.is-invalid .optout-checkbox:not(:checked) {
        background-image: url('../images/optout-dmca/checkbox-danger-18.svg');
    }
    .optout-required-pill {
        align-items: flex-start;
        margin-top: -5px;
        padding: 10px 12px;
        font-size: 11px;
        font-weight: 400;
        line-height: 14px;
        color: #010314;
    }
    .optout-required-pill img {
        margin-top: 1px;
    }
    .optout-submit-btn {
        align-self: stretch;
        width: auto;
        margin-top: 0;
        padding: 14px 0;
        font-size: 11px;
        line-height: 14px;
    }
}

/* Turnstile captcha (300px wide widget) - scaled down to fit the 260px mobile card */
.optout-captcha {
    min-height: 65px;
}
@media (max-width: 767px) {
    .optout-captcha {
        min-height: 56px;
    }
    .optout-captcha .cf-turnstile {
        transform: scale(0.86);
        transform-origin: left top;
    }
}
