/* ──────────────────────────────────────────
   1. PAGE HERO
   ────────────────────────────────────────── */
.nl-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.nl-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/mall (4).jpg');
    background-size: cover;
    background-position: center 35%;
    transform: scale(1.05);
    transition: transform 7s ease-out;
}

.nl-hero-bg.loaded {
    transform: scale(1);
}

.nl-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at center,

            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.55) 30%,
            rgba(0, 0, 0, 0.38) 58%,
            rgba(0, 0, 0, 0.18) 72%,
            rgba(0, 0, 0, 0.04) 100%
        );
}

.nl-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 0 24px;
}

.nl-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nl-hero-content p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    max-width: 520px;
    margin: 0 auto;
}


/* ──────────────────────────────────────────
   2. PERKS BAR
   ────────────────────────────────────────── */
.nl-perks-bar {
    background-color: #e7dfd4;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 28px var(--container-pad);
}

.nl-perks-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nl-perk {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 200px;
}

.nl-perk-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background-color: rgba(26, 26, 26, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c4a3d;
}

.nl-perk-icon svg {
    width: 20px;
    height: 20px;
}

.nl-perk h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.nl-perk p {
    font-size: 0.76rem;
    color: var(--color-mid);
    line-height: 1.55;
}


/* ──────────────────────────────────────────
   3. MAIN SPLIT SECTION
   ────────────────────────────────────────── */
.nl-main-section {
    padding: 64px var(--container-pad) 80px;
    background-color: var(--color-bg);
}

.nl-main-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 52px;
    align-items: flex-start;
}


/* ──────────────────────────────────────────
   4. ASIDE — Left column
   ────────────────────────────────────────── */
.nl-aside {
    flex: 0 0 300px;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.nl-aside-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 28px;
    line-height: 1.3;
}

.nl-aside-benefits {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 36px;
}

.nl-aside-benefits li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.nl-aside-bullet {
    color: #9C7A5D;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.nl-aside-benefits strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 3px;
}

.nl-aside-benefits p {
    font-size: 0.78rem;
    color: var(--color-mid);
    line-height: 1.6;
}



/* ──────────────────────────────────────────
   5. FORM CARD — Right column
   ────────────────────────────────────────── */
.nl-form-wrap {
    flex: 1;
    min-width: 0;
}

.nl-form-card {
    background-color: #c8ae96;
    border-radius: var(--radius-lg);
    padding: 44px 44px 48px;
    box-shadow: var(--shadow-md);
}

.nl-form-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.nl-form-subtitle {
    font-size: 0.88rem;
    color: rgba(26, 26, 26, 0.6);
    margin-bottom: 32px;
}

.nl-form {
    display: flex;
    flex-direction: column;
    gap: 26px;
}


/* ──────────────────────────────────────────
   6. FORM FIELDS — Text / Email / Tel
   ────────────────────────────────────────── */
.nl-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nl-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 0.01em;
}

.nl-required {
    color: #c0392b;
    margin-left: 2px;
}

.nl-field-hint {
    font-size: 0.75rem;
    color: rgba(26, 26, 26, 0.55);
    margin-top: -2px;
}

.nl-input-wrap {
    position: relative;
}

.nl-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-mid);
    pointer-events: none;
}

.nl-input {
    width: 100%;
    padding: 13px 16px 13px 40px;
    border: 1.5px solid rgba(26, 26, 26, 0.18);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--color-dark);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.nl-input::placeholder {
    color: var(--color-light);
}

.nl-input:focus {
    border-color: var(--color-dark);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}


/* ──────────────────────────────────────────
   7. CHECKBOX GRID
   ────────────────────────────────────────── */
.nl-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-top: 4px;
}

.nl-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-dark);
    cursor: pointer;
    user-select: none;
}

/* Hide native checkbox */
.nl-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom checkbox box */
.nl-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(26, 26, 26, 0.35);
    border-radius: 4px;
    background-color: #ffffff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition), border-color var(--transition);
}

.nl-checkbox:checked + .nl-checkbox-custom {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
}

/* Checkmark via pseudo */
.nl-checkbox:checked + .nl-checkbox-custom::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.nl-checkbox-label:hover .nl-checkbox-custom {
    border-color: var(--color-dark);
}

.nl-checkbox:focus + .nl-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.15);
}


/* ──────────────────────────────────────────
   8. RADIO GROUP
   ────────────────────────────────────────── */
.nl-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 4px;
}

.nl-radio-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    color: var(--color-dark);
    cursor: pointer;
    user-select: none;
}

/* Hide native radio */
.nl-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom radio dot */
.nl-radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(26, 26, 26, 0.35);
    border-radius: 50%;
    background-color: #ffffff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition);
}

.nl-radio:checked + .nl-radio-custom {
    border-color: var(--color-dark);
}

.nl-radio:checked + .nl-radio-custom::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-dark);
}

.nl-radio-label:hover .nl-radio-custom {
    border-color: var(--color-dark);
}

.nl-radio:focus + .nl-radio-custom {
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.15);
}


/* ──────────────────────────────────────────
   9. PROGRESS BAR
   ────────────────────────────────────────── */
.nl-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nl-progress-bar {
    width: 100%;
    height: 5px;
    background-color: rgba(26, 26, 26, 0.12);
    border-radius: 99px;
    overflow: hidden;
}

.nl-progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--color-dark);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.nl-progress-label {
    font-size: 0.72rem;
    color: rgba(26, 26, 26, 0.55);
    font-weight: 500;
}


/* ──────────────────────────────────────────
   10. SUBMIT BUTTON
   ────────────────────────────────────────── */
.nl-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
    font-size: 0.92rem;
}

.nl-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Terms checkbox row */
.nl-field-group--terms {
    margin-top: -4px;
}

.nl-terms-label {
    font-size: 0.82rem;
    color: var(--color-mid);
    align-items: flex-start;
    gap: 10px;
}

.nl-terms-link {
    color: var(--color-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity var(--transition);
}

.nl-terms-link:hover {
    opacity: 0.6;
}


/* ──────────────────────────────────────────
   11. SUCCESS MODAL
   ────────────────────────────────────────── */
.nl-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 24px;
    animation: backdropFadeIn 0.3s ease both;
}

.nl-modal-backdrop[hidden] {
    display: none;
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.nl-modal {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.35s ease both;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nl-modal-icon {
    width: 64px;
    height: 64px;
    background-color: #d4edd4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #2e7d32;
}

.nl-modal-icon svg {
    width: 30px;
    height: 30px;
}

.nl-modal h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.nl-modal p {
    font-size: 0.9rem;
    color: var(--color-mid);
    line-height: 1.7;
    margin-bottom: 32px;
}

.nl-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ──────────────────────────────────────────
   12. VALIDATION STATES
   ────────────────────────────────────────── */
.nl-error-msg {
    font-size: 0.75rem;
    color: #c0392b;
    font-weight: 500;
    min-height: 16px;
    display: block;
    letter-spacing: 0.01em;
}

/* Error state on input */
.nl-field-group.has-error .nl-input {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* Success state on input */
.nl-field-group.is-valid .nl-input {
    border-color: #2e7d32;
}

/* Valid checkmark on field */
.nl-field-group.is-valid .nl-input-icon {
    color: #2e7d32;
}

/* Error border for checkbox/radio groups */
.nl-field-group.has-error .nl-checkbox-grid,
.nl-field-group.has-error .nl-radio-group,
.nl-field-group.has-error .nl-terms-label {
    padding: 10px;
    border: 1.5px dashed #c0392b;
    border-radius: var(--radius-sm);
    margin-left: -10px;
    margin-right: -10px;
}


/* ──────────────────────────────────────────
   13. RESPONSIVE — Tablet ≤ 900px
   ────────────────────────────────────────── */
@media screen and (max-width: 900px) {
    .nl-main-inner {
        flex-direction: column;
        gap: 36px;
    }

    .nl-aside {
        flex: none;
        width: 100%;
        position: static;
    }

    .nl-aside-cta {
        display: none;
    }

    .nl-form-card {
        padding: 32px 28px 36px;
    }

    .nl-perks-inner {
        gap: 20px;
    }

    .nl-perk {
        min-width: 160px;
    }
}

@media screen and (max-width: 768px) {
    .nl-hero {
        height: 240px;
    }

    .nl-perks-bar {
        padding: 20px 24px;
    }

    .nl-main-section {
        padding: 40px 24px 60px;
    }

    .nl-checkbox-grid {
        grid-template-columns: 1fr;
    }
}


/* ──────────────────────────────────────────
   14. RESPONSIVE — Mobile ≤ 540px
   ────────────────────────────────────────── */
@media screen and (max-width: 540px) {
    .nl-hero {
        height: 200px;
    }

    .nl-hero-content h1 {
        font-size: 2rem;
    }

    .nl-hero-content p {
        font-size: 0.85rem;
    }

    .nl-perks-inner {
        flex-direction: column;
        gap: 16px;
    }

    .nl-perk {
        min-width: 0;
    }

    .nl-form-card {
        padding: 24px 18px 28px;
        border-radius: var(--radius-md);
    }

    .nl-form-title {
        font-size: 1.4rem;
    }

    .nl-checkbox-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nl-radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .nl-modal {
        padding: 32px 22px;
    }

    .nl-modal-actions {
        flex-direction: column;
    }

    .nl-modal-actions a {
        width: 100%;
        justify-content: center;
    }

    .nl-main-section {
        padding: 28px 16px 48px;
    }
}


/* ============================================================
   EVENT REGISTRATION SECTION
   ============================================================ */

/* ── Section wrapper ── */
.ev-reg-section {
    background-color: var(--color-card);
    padding: 72px var(--container-pad);
    border-top: 1px solid var(--color-border);
}

.ev-reg-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Section header ── */
.ev-reg-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.section-eyebrow-reg {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9C7A5D;
    margin-bottom: 8px;
}

.ev-reg-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.ev-reg-subtitle {
    font-size: 0.875rem;
    color: var(--color-mid);
    line-height: 1.6;
}

.ev-reg-browse-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-dark);
    border-bottom: 1.5px solid var(--color-dark);
    padding-bottom: 2px;
    white-space: nowrap;
    transition: opacity var(--transition);
    flex-shrink: 0;
}
.ev-reg-browse-link:hover { opacity: 0.55; }

/* ── Event cards grid (4 col → 2 col mobile) ── */
.ev-reg-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ── Single event card ── */
.ev-reg-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
    opacity: 0;
    transform: translateY(16px);
}
.ev-reg-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease, transform 0.55s ease,
                box-shadow var(--transition);
}
.ev-reg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Card image */
.ev-reg-card-img {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}
.ev-reg-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ev-reg-card:hover .ev-reg-card-img img { transform: scale(1.05); }

/* Date badge */
.ev-reg-card-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    text-align: center;
    min-width: 48px;
    box-shadow: var(--shadow-sm);
}
.ev-reg-card-date span {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-mid);
    text-transform: uppercase;
}
.ev-reg-card-date strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1;
}

/* Category badges */
.ev-reg-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}
.ev-reg-badge--sports   { background: #dbeafe; color: #1e40af; }
.ev-reg-badge--culinary { background: #fef3c7; color: #92400e; }
.ev-reg-badge--arts     { background: #ede9fe; color: #5b21b6; }
.ev-reg-badge--lifestyle{ background: #d1fae5; color: #065f46; }

/* Card body */
.ev-reg-card-body {
    padding: 16px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ev-reg-card-body h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.25;
}
.ev-reg-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--color-mid);
}
.ev-reg-card-meta svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #9C7A5D;
}

/* Register button on card */
.ev-reg-open-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--color-dark);
    color: #ffffff;
    border: 2px solid var(--color-dark);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), transform var(--transition);
}
.ev-reg-open-btn:hover {
    background-color: transparent;
    color: var(--color-dark);
    transform: translateY(-1px);
}


/* ──────────────────────────────────────────
   EVENT REGISTRATION MODAL
   ────────────────────────────────────────── */
.ev-reg-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
    padding: 20px;
    animation: evBackdropIn 0.25s ease both;
}
.ev-reg-modal-backdrop[hidden] { display: none; }

@keyframes evBackdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ev-reg-modal {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 36px 36px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    animation: evModalIn 0.3s ease both;
}

@keyframes evModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.ev-reg-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-card);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-mid);
    transition: background var(--transition), color var(--transition);
}
.ev-reg-modal-close:hover { background: var(--color-border); color: var(--color-dark); }

/* Event summary strip */
.ev-reg-modal-summary {
    display: flex;
    gap: 16px;
    align-items: center;
    background-color: var(--color-card);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 24px;
}
.ev-reg-modal-img-wrap {
    width: 72px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.ev-reg-modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ev-reg-modal-category {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9C7A5D;
    margin-bottom: 4px;
}
.ev-reg-modal-event-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 6px;
}
.ev-reg-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.ev-reg-modal-meta p {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--color-mid);
}
.ev-reg-modal-meta svg { width: 12px; height: 12px; flex-shrink: 0; color: #9C7A5D; }

/* Form title */
.ev-reg-form-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 18px;
}

/* ── Form field groups ── */
.ev-reg-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ev-rf-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ev-rf-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-dark);
}
.ev-rf-req  { color: #c0392b; margin-left: 2px; }
.ev-rf-optional { font-weight: 400; color: var(--color-light); font-size: 0.75rem; }

.ev-rf-input-wrap { position: relative; }

.ev-rf-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--color-light);
    pointer-events: none;
}

.ev-rf-input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: var(--color-dark);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.ev-rf-input::placeholder { color: var(--color-light); }
.ev-rf-input:focus {
    border-color: var(--color-dark);
    box-shadow: 0 0 0 3px rgba(26,26,26,0.09);
}

.ev-rf-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: var(--color-dark);
    outline: none;
    resize: vertical;
    transition: border-color var(--transition);
}
.ev-rf-textarea::placeholder { color: var(--color-light); }
.ev-rf-textarea:focus { border-color: var(--color-dark); }

/* Inline error */
.ev-rf-error {
    font-size: 0.73rem;
    color: #c0392b;
    font-weight: 500;
    min-height: 14px;
    display: block;
}

/* Validation states */
.ev-rf-group.has-error .ev-rf-input,
.ev-rf-group.has-error .ev-rf-textarea {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.ev-rf-group.is-valid .ev-rf-input { border-color: #2e7d32; }

/* Submit */
.ev-rf-submit {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ── Event success modal ── */
.ev-reg-success-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(26,26,26,0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 20px;
    animation: evBackdropIn 0.25s ease both;
}
.ev-reg-success-backdrop[hidden] { display: none; }

.ev-reg-success-modal {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    animation: evModalIn 0.3s ease both;
}

.ev-success-icon {
    width: 60px;
    height: 60px;
    background: #d4edd4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #2e7d32;
}
.ev-success-icon svg { width: 28px; height: 28px; }

.ev-reg-success-modal h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 12px;
}
.ev-reg-success-modal p {
    font-size: 0.875rem;
    color: var(--color-mid);
    line-height: 1.7;
    margin-bottom: 20px;
}

.ev-success-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 26px;
    text-align: left;
    font-size: 0.78rem;
    color: var(--color-mid);
}

.ev-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ── Responsive ── */
@media screen and (max-width: 1024px) {
    .ev-reg-cards { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    .ev-reg-section { padding: 48px 24px; }
    .ev-reg-modal { padding: 24px 20px 28px; }
}

@media screen and (max-width: 540px) {
    .ev-reg-cards { grid-template-columns: 1fr; }
    .ev-reg-header { flex-direction: column; align-items: flex-start; }
    .ev-reg-modal-summary { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ev-reg-success-modal { padding: 32px 20px; }
    .ev-success-actions { flex-direction: column; }
    .ev-success-actions a,
    .ev-success-actions button { width: 100%; justify-content: center; }
}