/* -------------------------------------------------------------------
   Aradel Email Alerts Section
   Scope: .ar-email-alerts-section
   CF7 template uses: .ar-form-grid, .ar-form-field, .ar-alerts-group,
                      .ar-form-note, .ar-form-intro, .submit-cont
   Reference: Aradel Contact Us form card (aradel-contact.css)
   ------------------------------------------------------------------- */

/* ════════════════════════════════════════════════════════════════════
   SECTION WRAPPER
   ════════════════════════════════════════════════════════════════════ */

.ar-email-alerts-section {
    padding-top: 64px;
    padding-bottom: 96px;
}

.ar-email-alerts__inner {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 112px;
    padding-right: 112px;
    box-sizing: border-box;
    width: 100%;
}

/* ════════════════════════════════════════════════════════════════════
   CARD
   ════════════════════════════════════════════════════════════════════ */

.ar-email-alerts__card {
    background: #FBFBFB;
    border-radius: 20px;
    padding: 48px 56px;
}

/* ════════════════════════════════════════════════════════════════════
   CONSENT / PRIVACY CONTENT
   ════════════════════════════════════════════════════════════════════ */

.ar-email-alerts__consent {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: #F5F7F7;
    border: 1px solid #E4E8E8;
    border-radius: 16px;
}

.ar-email-alerts__consent-intro {
    color: rgba(0, 16, 20, 0.78);
    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
}

.ar-email-alerts__consent-intro p {
    margin: 0;
}

.ar-email-alerts__consent-intro p + p {
    margin-top: 8px;
}

.ar-email-alerts__privacy-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    color: #01303A;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.ar-email-alerts__privacy-link:hover {
    color: #01303A;
}

.ar-email-alerts__privacy-link:focus-visible {
    outline: 2px solid #01303A;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ════════════════════════════════════════════════════════════════════
   CF7 FORM — BASE RESET
   ════════════════════════════════════════════════════════════════════ */

.ar-email-alerts__form .wpcf7 {
    margin: 0;
    padding: 0;
}

.ar-email-alerts__form .wpcf7-form {
    margin: 0;
    padding: 0;
}

/* ════════════════════════════════════════════════════════════════════
   FORM NOTE & INTRO TEXT
   ════════════════════════════════════════════════════════════════════ */

.ar-email-alerts__form .ar-form-note {
    color: #001014;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin: 0 0 6px;
}

.ar-email-alerts__form .ar-form-note .required {
    color: #C1000F;
    font-weight: 600;
    margin-right: 2px;
}

.ar-email-alerts__form .ar-form-intro {
    color: rgba(0, 16, 20, 0.6);
    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    margin: 0 0 28px;
}

/* ════════════════════════════════════════════════════════════════════
   CHECKBOX GROUP
   ════════════════════════════════════════════════════════════════════ */

.ar-email-alerts__form .ar-alerts-group {
    margin-bottom: 40px;
}

/* CF7 checkbox span wrapper */
.ar-email-alerts__form .ar-alerts-group .wpcf7-checkbox {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Each checkbox item */
.ar-email-alerts__form .ar-alerts-group .wpcf7-list-item {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 10px 0;
    border-bottom: 1px solid #EFEFEF;
}

.ar-email-alerts__form .ar-alerts-group .wpcf7-list-item:first-child {
    border-top: 1px solid #EFEFEF;
}

.ar-email-alerts__form .ar-alerts-group .wpcf7-list-item-label {
    color: #001014;
    font-family: "Nunito Sans", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 26px;
    margin-left: 12px;
    cursor: pointer;
    user-select: none;
}

/* Custom checkbox */
.ar-email-alerts__form .ar-alerts-group input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid #CDCDCD;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ar-email-alerts__form .ar-alerts-group input[type="checkbox"]:checked {
    background: #01303A;
    border-color: #01303A;
}

.ar-email-alerts__form .ar-alerts-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.ar-email-alerts__form .ar-alerts-group input[type="checkbox"]:focus {
    outline: 2px solid #01303A;
    outline-offset: 2px;
}

/* Acceptance checkbox within this module only */
.ar-email-alerts__form .ar-consent-field {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #EFEFEF;
}

.ar-email-alerts__form .wpcf7-acceptance {
    display: block;
}

.ar-email-alerts__form .wpcf7-acceptance .wpcf7-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
}

.ar-email-alerts__form .wpcf7-acceptance input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 2px 0 0;
    border: 1.5px solid #CDCDCD;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ar-email-alerts__form .wpcf7-acceptance input[type="checkbox"]:checked {
    background: #01303A;
    border-color: #01303A;
}

.ar-email-alerts__form .wpcf7-acceptance input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.ar-email-alerts__form .wpcf7-acceptance input[type="checkbox"]:focus,
.ar-email-alerts__form .wpcf7-acceptance input[type="checkbox"]:focus-visible {
    outline: 2px solid #01303A;
    outline-offset: 2px;
}

.ar-email-alerts__form .wpcf7-acceptance .wpcf7-list-item-label {
    color: #001014;
    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    cursor: pointer;
}

/* ════════════════════════════════════════════════════════════════════
   GRID — ar-form-grid (set in CF7 template)
   ════════════════════════════════════════════════════════════════════ */

.ar-email-alerts__form .ar-form-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 0;
    align-items: end;
}

.ar-email-alerts__form .ar-form-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Full-width field within the grid (e.g. Email address) */
.ar-email-alerts__form .ar-form-field--full {
    grid-column: 1 / -1;
}

/* ════════════════════════════════════════════════════════════════════
   FIELD WRAPPER
   ════════════════════════════════════════════════════════════════════ */

.ar-email-alerts__form .ar-form-field {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Labels ─────────────────────────────────────────────────────────── */

.ar-email-alerts__form .ar-form-field label {
    display: block;
    margin-bottom: 0;
    color: #001014;
    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    cursor: pointer;
}

/* ── Text / email / tel inputs ──────────────────────────────────────── */

.ar-email-alerts__form input[type="text"],
.ar-email-alerts__form input[type="email"],
.ar-email-alerts__form input[type="tel"] {
    display: block;
    width: 100%;
    height: 40px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #CDCDCD;
    border-radius: 0;
    outline: none;
    padding: 6px 0;
    font-family: "Nunito Sans", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 26px;
    color: #000;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

/* ── Select dropdowns ───────────────────────────────────────────────── */

.ar-email-alerts__form select {
    display: block;
    width: 100%;
    height: 40px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #CDCDCD;
    border-radius: 0;
    outline: none;
    padding: 6px 0;
    font-family: "Nunito Sans", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 26px;
    color: #000;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23001014' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.ar-email-alerts__form select:focus {
    border-bottom-color: #01303A;
    outline: none;
}

/* ── Placeholders ───────────────────────────────────────────────────── */

.ar-email-alerts__form input::placeholder {
    color: rgba(0, 16, 20, 0.4);
}

/* ── Focus states ───────────────────────────────────────────────────── */

.ar-email-alerts__form input:focus {
    border-bottom-color: #01303A;
    outline: none;
}

/* ── Validation states ──────────────────────────────────────────────── */

.ar-email-alerts__form .wpcf7-not-valid,
.ar-email-alerts__form input.wpcf7-not-valid,
.ar-email-alerts__form select.wpcf7-not-valid {
    border-bottom-color: #C1000F;
}

.ar-email-alerts__form .wpcf7-not-valid-tip {
    display: block;
    color: #C1000F;
    font-family: "Nunito Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 4px;
}

/* ── Response output ────────────────────────────────────────────────── */

.ar-email-alerts__form .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    border: none;
}

.ar-email-alerts__form .wpcf7-mail-sent-ok {
    background: #e6f4f1;
    color: #005A4E;
}

.ar-email-alerts__form .wpcf7-mail-sent-ng,
.ar-email-alerts__form .wpcf7-spam-blocked {
    background: #fce8e8;
    color: #C1000F;
}

.ar-email-alerts__form .wpcf7-validation-errors {
    background: #fff8e1;
    color: #7a5c00;
}

/* ════════════════════════════════════════════════════════════════════
   SUBMIT CONTAINER
   ════════════════════════════════════════════════════════════════════ */

.ar-email-alerts__form .submit-cont {
    margin-top: 40px;
}

.ar-email-alerts__form .wpcf7-submit {
    color: #01303A;
}

.ar-email-alerts__form .wpcf7-submit:disabled {
    opacity: 0.5;
    cursor: default;
}

.ar-email-alerts__form .wpcf7-spinner {
    vertical-align: middle;
    margin-left: 8px;
}

/* ════════════════════════════════════════════════════════════════════
   HELPER LINK
   ════════════════════════════════════════════════════════════════════ */

.ar-email-alerts__helper {
    margin-top: 20px;
}

.ar-email-alerts__helper-link {
    color: #01303A;
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ar-email-alerts__helper-link:hover {
    color: #C1000F;
}

.ar-email-alerts__backend-note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #EFEFEF;
    color: rgba(0, 16, 20, 0.72);
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

.ar-email-alerts__backend-note p {
    margin: 0;
}

.ar-email-alerts__backend-note p + p {
    margin-top: 8px;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
   ════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {

    .ar-email-alerts__inner {
        padding-left: 64px;
        padding-right: 64px;
    }

    .ar-email-alerts__card {
        padding: 40px;
        max-width: none;
    }

    .ar-email-alerts__consent {
        padding: 18px 20px;
    }

    .ar-email-alerts__form .ar-form-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 767px)
   ════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {

    .ar-email-alerts-section {
        padding-top: 40px;
        padding-bottom: 48px;
    }

    .ar-email-alerts__inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .ar-email-alerts__card {
        padding: 24px;
    }

    .ar-email-alerts__consent {
        margin-bottom: 24px;
        padding: 16px;
        border-radius: 14px;
    }

    .ar-email-alerts__form .ar-form-grid--3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ar-email-alerts__form .ar-alerts-group .wpcf7-list-item {
        padding: 12px 0;
    }

    .ar-email-alerts__form .ar-alerts-group .wpcf7-list-item-label {
        font-size: 16px;
    }

    .ar-email-alerts__form .wpcf7-acceptance .wpcf7-list-item {
        gap: 10px;
    }
}
