
    :root {
        --brand: #0f3b2c;
        --brand-light: #1a5e48;
        --brand-pale: #f0f9f4;
        --danger: #b91c1c;
        --danger-pale: #fef2f2;
        --success: #10b981;
        --text: #1e293b;
        --text-muted: #64748b;
        --text-heading: #1e3a5f;
        --border: #e2e8f0;
        --border-input: #cbd5e1;
        --bg-form: #fafbfc;
        --radius-sm: 8px;
        --radius: 12px;
        --radius-lg: 16px;
        --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.02);
        --shadow: 0 4px 12px rgba(15, 59, 44, 0.15);
    }

    .acae-booking-form {
        max-width: 850px;
        margin: 0 auto;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        background: #fff;
        color: var(--text);
        line-height: 1.5;
        padding: 0.5rem 0
    }

    .acae-booking-form * {
        box-sizing: border-box;
        margin: 0
    }

    .form-header {
        margin-bottom: 2rem;
        background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
        border-radius: var(--radius-lg);
        padding: 2rem 2rem 1.75rem;
        position: relative;
        overflow: hidden
    }

    .form-header::before {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 160px;
        height: 160px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        pointer-events: none
    }

    .form-header::after {
        content: '';
        position: absolute;
        bottom: -30px;
        left: -20px;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.04);
        pointer-events: none
    }

    .form-header-eyebrow {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 0.5rem
    }

    .form-header h2 {
        font-size: clamp(1.3rem, 4vw, 1.65rem);
        font-weight: 700;
        color: #fff;
        line-height: 1.25;
        margin-bottom: 0.75rem
    }

    .form-header .event-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
        align-items: center
    }

    .form-header .meta-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.8rem;
        font-weight: 500;
        padding: 0.3rem 0.75rem;
        border-radius: 20px;
        backdrop-filter: blur(4px)
    }

    .form-header .meta-pill svg {
        width: 13px;
        height: 13px;
        opacity: 0.75;
        flex-shrink: 0
    }

    .booking-type-wrapper {
        margin-bottom: 2.5rem
    }

    .booking-type-intro {
        font-size: 0.88rem;
        color: var(--text-muted);
        margin-bottom: 1.25rem;
        line-height: 1.5
    }

    .booking-type-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem
    }

    .booking-type-card {
        position: relative;
        cursor: pointer;
        border: 2px solid var(--border);
        border-radius: var(--radius);
        padding: 1.25rem 1.25rem 1.25rem 1rem;
        background: #fff;
        transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
        display: flex;
        flex-direction: column;
        gap: 0.6rem
    }

    .booking-type-card:hover {
        border-color: var(--brand-light);
        box-shadow: 0 2px 10px rgba(15, 59, 44, 0.08)
    }

    .booking-type-card.selected {
        border-color: var(--brand);
        background: var(--brand-pale);
        box-shadow: 0 2px 12px rgba(15, 59, 44, 0.12)
    }

    .booking-type-card input[type=radio] {
        position: absolute;
        opacity: 0;
        pointer-events: none
    }

    .btc-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.5rem
    }

    .btc-icon {
        font-size: 1.6rem;
        line-height: 1
    }

    .btc-radio-dot {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 2px solid var(--border-input);
        flex-shrink: 0;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff
    }

    .booking-type-card.selected .btc-radio-dot {
        border-color: var(--brand);
        background: var(--brand)
    }

    .btc-radio-dot::after {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #fff;
        opacity: 0;
        transition: opacity 0.15s
    }

    .booking-type-card.selected .btc-radio-dot::after {
        opacity: 1
    }

    .btc-title {
        font-weight: 700;
        font-size: 0.95rem;
        color: var(--text);
        margin-bottom: 0.15rem
    }

    .booking-type-card.selected .btc-title {
        color: var(--brand)
    }

    .btc-badge {
        display: inline-block;
        background: var(--brand);
        color: #fff;
        font-size: 0.6rem;
        font-weight: 700;
        padding: 0.1rem 0.45rem;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        margin-left: 0.4rem;
        vertical-align: middle
    }

    .btc-desc {
        font-size: 0.8rem;
        color: var(--text-muted);
        line-height: 1.45
    }

    .btc-features {
        display: flex;
        flex-direction: column;
        gap: 0.3rem
    }

    .btc-feature {
        font-size: 0.75rem;
        color: #475569;
        display: flex;
        align-items: center;
        gap: 0.4rem
    }

    .btc-feature::before {
        content: '✓';
        color: var(--brand);
        font-weight: 700;
        font-size: 0.7rem
    }

    @media(max-width:500px) {
        .booking-type-cards {
            grid-template-columns: 1fr
        }
    }

    .section-desc {
        font-size: 0.82rem;
        color: var(--text-muted);
        margin-bottom: 1.25rem;
        margin-top: -0.75rem;
        line-height: 1.5
    }

    .field-hint {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-top: 0.25rem;
        line-height: 1.4
    }

    .country-input-readonly {
        background: #f8fafc !important;
        cursor: default !important;
        color: var(--text)
    }



    .autosave-indicator {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-bottom: 1rem;
        opacity: 0;
        transition: opacity 0.2s
    }

    .autosave-indicator.visible {
        opacity: 1
    }

    .autosave-indicator .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--success);
        animation: pulse 1.5s infinite
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 1
        }

        50% {
            opacity: 0.4
        }
    }

    .resume-session-banner {
        background: var(--brand-pale);
        border: 1px solid #bbf7d0;
        border-radius: var(--radius);
        padding: 0.9rem 1.25rem;
        margin-bottom: 1.5rem;
        display: none;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem
    }

    .resume-session-banner.visible {
        display: flex
    }

    .resume-session-banner p {
        color: #166534;
        font-size: 0.85rem
    }

    .resume-buttons {
        display: flex;
        gap: 0.5rem
    }

    .btn-resume {
        background: var(--brand);
        color: #fff;
        border: none;
        padding: 0.4rem 1rem;
        border-radius: 20px;
        font-size: 0.8rem;
        cursor: pointer;
        font-weight: 500
    }

    .btn-resume:hover {
        background: var(--brand-light)
    }

    .btn-clear {
        background: transparent;
        color: var(--text-muted);
        border: 1px solid var(--border-input);
        padding: 0.4rem 1rem;
        border-radius: 20px;
        font-size: 0.8rem;
        cursor: pointer
    }

    .btn-clear:hover {
        background: #f1f5f9
    }

    .form-section {
        margin-bottom: 2rem;
        background: var(--bg-form);
        padding: 1.5rem;
        border-radius: 14px;
        border: 1px solid #e9edf2
    }

    @media(min-width:640px) {
        .form-section {
            padding: 1.8rem 2rem
        }
    }

    .form-section h3 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        color: var(--text-heading);
        border-left: 4px solid #1e4a3d;
        padding-left: 1rem
    }

    .form-row {
        display: flex;
        flex-wrap: wrap;
        gap: 1.25rem 1.5rem;
        margin-bottom: 1rem
    }

    .form-group {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 200px;
        display: flex;
        flex-direction: column;
        gap: 0.3rem
    }

    .form-group.full-width {
        flex: 1 1 100%
    }

    label,
    .label-like {
        font-weight: 500;
        font-size: 0.85rem;
        color: #334155
    }

    .required-star {
        color: var(--danger);
        margin-left: 2px
    }

    .same-as-billing {
        margin-bottom: 1.25rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: var(--brand-pale);
        border: 1.5px solid #a7f3d0;
        border-radius: 40px;
        padding: 0.6rem 1.1rem;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s
    }

    .same-as-billing:has(input:checked) {
        background: #d1fae5;
        border-color: var(--brand-light)
    }

    .same-as-billing input {
        width: 1rem;
        height: 1rem;
        accent-color: var(--brand);
        cursor: pointer;
        flex-shrink: 0
    }

    .same-as-billing label {
        font-weight: 500;
        color: var(--brand);
        cursor: pointer;
        font-size: 0.875rem
    }

    input.error,
    select.error {
        border-color: var(--danger) !important;
        background-color: var(--danger-pale)
    }

    input.valid,
    select.valid {
        border-color: var(--success) !important;
        background-color: #f0fdf4
    }

    .error-message {
        color: var(--danger);
        font-size: 0.75rem;
        margin-top: 0.2rem;
        display: none;
        align-items: center;
        gap: 0.25rem
    }

    .error-message.visible {
        display: flex
    }

    .error-message::before {
        content: '⚠';
        font-size: 0.7rem
    }

    .radio-group-inline {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem 2rem;
        background: #fff;
        padding: 0.6rem 1rem;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-input)
    }

    .radio-option {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        cursor: pointer;
        font-size: 0.9rem
    }

    .radio-option input {
        margin: 0;
        width: 1rem;
        height: 1rem;
        accent-color: #1e4a3d;
        cursor: pointer
    }

    input,
    select,
    textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
        border: 1px solid var(--border-input);
        border-radius: var(--radius-sm);
        background: #fff;
        transition: border 0.2s, box-shadow 0.2s;
        font-family: inherit;
        width: 100%
    }

    input:focus,
    select:focus {
        border-color: #1e4a3d;
        box-shadow: 0 0 0 3px rgba(30, 74, 61, 0.08);
        outline: none
    }

    input[readonly] {
        background-color: #f8fafc
    }

    input:disabled,
    select:disabled {
        background-color: #f1f5f9;
        color: var(--text-muted);
        cursor: not-allowed
    }

    .iti {
        width: 100%
    }

    .inline-hint {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-top: 0.2rem
    }

    .delegates-section {
        margin-top: 1.5rem
    }

    .delegates-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.25rem
    }

    .delegates-header h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-heading);
        display: flex;
        align-items: center
    }

    .delegate-count-badge {
        background: var(--brand);
        color: #fff;
        padding: 0.2rem 0.6rem;
        border-radius: 20px;
        font-size: 0.75rem;
        margin-left: 0.6rem
    }

    .btn-add-delegate {
        background: #fff;
        border: 1.5px solid var(--brand);
        color: var(--brand);
        padding: 0.5rem 1.2rem;
        border-radius: 30px;
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 0.4rem
    }

    .btn-add-delegate:hover {
        background: var(--brand);
        color: #fff
    }

    .delegates-table-container {
        overflow-x: auto;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: #fff
    }

    .delegates-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.85rem;
        min-width: 750px
    }

    .delegates-table th {
        background: #f1f5f9;
        padding: 0.75rem;
        text-align: left;
        font-weight: 600;
        color: var(--text);
        border-bottom: 2px solid var(--border-input);
        white-space: nowrap
    }

    .delegates-table td {
        padding: 0.75rem;
        border-bottom: 1px solid var(--border)
    }

    .delegate-actions {
        display: flex;
        gap: 0.4rem
    }

    .btn-icon {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.3rem 0.5rem;
        border-radius: 5px;
        font-size: 0.75rem;
        font-family: inherit
    }

    .btn-edit {
        color: #1e4a3d;
        border: 1px solid var(--border-input)
    }

    .btn-edit:hover {
        background: #e0f2e9
    }

    .btn-delete {
        color: #dc2626;
        border: 1px solid #fecaca
    }

    .btn-delete:hover {
        background: var(--danger-pale)
    }

    .empty-delegates-message {
        text-align: center;
        padding: 2.5rem;
        color: var(--text-muted)
    }

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 1rem
    }

    .modal-overlay.visible {
        display: flex
    }

    .modal {
        background: #fff;
        border-radius: var(--radius-lg);
        max-width: 550px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center
    }

    .modal-header h3 {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-heading)
    }

    .modal-close {
        background: none;
        border: none;
        font-size: 1.4rem;
        cursor: pointer;
        color: var(--text-muted);
        padding: 0.25rem
    }

    .modal-body {
        padding: 1.5rem
    }

    .modal-footer {
        padding: 1.25rem 1.5rem;
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: flex-end;
        gap: 0.75rem
    }

    .btn-secondary {
        background: transparent;
        border: 1px solid #94a3b8;
        padding: 0.7rem 1.5rem;
        border-radius: 30px;
        font-weight: 500;
        color: var(--text);
        cursor: pointer;
        font-family: inherit
    }

    .btn-secondary:hover {
        background: #f1f5f9
    }

    .total-display-box {
        background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
        border-radius: var(--radius-lg);
        padding: 1.5rem 2rem;
        margin: 2rem 0 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
        position: relative;
        overflow: hidden;
        box-shadow: 0 6px 24px rgba(15, 59, 44, 0.22)
    }

    .total-display-box::before {
        content: '';
        position: absolute;
        top: -30px;
        right: -30px;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.07);
        pointer-events: none
    }

    .total-label {
        font-weight: 600;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.75);
        text-transform: uppercase;
        letter-spacing: 0.6px
    }

    .total-amount {
        font-weight: 800;
        font-size: clamp(1.8rem, 5vw, 2.4rem);
        color: #fff;
        display: flex;
        align-items: baseline;
        gap: 0.1rem;
        letter-spacing: -0.02em
    }

    .total-currency-sign {
        font-size: inherit;
        font-weight: 800
    }

    .total-detail,
    .group-total-breakdown {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
        margin-top: 2px;
        width: 100%
    }

    .action-bar {
        display: flex;
        justify-content: flex-end;
        margin-top: 1rem
    }

    .btn-primary {
        background: var(--brand);
        color: #fff;
        border: none;
        padding: 0.9rem 2.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 40px;
        cursor: pointer;
        transition: background 0.15s, transform 0.1s;
        font-family: inherit;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem
    }

    .btn-primary:hover {
        background: var(--brand-light);
        transform: translateY(-1px)
    }

    .btn-primary:active {
        transform: translateY(0)
    }

    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none
    }

    /* Nights badge */
    .nights-badge {
        display: none;
        align-items: center;
        justify-content: center;
        background: var(--brand-pale);
        border: 1.5px solid var(--brand-light);
        color: var(--brand);
        font-size: 0.78rem;
        font-weight: 700;
        padding: 0.4rem 0.9rem;
        border-radius: 20px;
        white-space: nowrap;
        align-self: flex-end;
        margin-bottom: 0.3rem
    }

    .nights-badge.visible {
        display: flex
    }

    /* Room stepper */
    .room-stepper {
        display: flex;
        align-items: center;
        border: 1px solid var(--border-input);
        border-radius: var(--radius-sm);
        overflow: hidden;
        background: #fff
    }

    .room-stepper input[type=number] {
        border: none;
        text-align: center;
        width: 3rem;
        padding: 0.7rem 0.25rem;
        font-size: 0.95rem;
        font-weight: 600;
        -moz-appearance: textfield
    }

    .room-stepper input[type=number]::-webkit-inner-spin-button,
    .room-stepper input[type=number]::-webkit-outer-spin-button {
        -webkit-appearance: none
    }

    .room-stepper input[type=number]:focus {
        box-shadow: none;
        outline: none
    }

    .stepper-btn {
        background: #f1f5f9;
        border: none;
        width: 2.4rem;
        height: 100%;
        cursor: pointer;
        font-size: 1.1rem;
        color: var(--brand);
        font-weight: 700;
        transition: background 0.15s;
        padding: 0.5rem 0;
        display: flex;
        align-items: center;
        justify-content: center
    }

    .stepper-btn:hover {
        background: var(--brand-pale)
    }

    .stepper-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed
    }

    /* Hotel hint */
    .hotel-desc-hint {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-top: 0.25rem;
        display: none
    }

    .hotel-desc-hint.visible {
        display: block
    }

    /* Delegate mobile cards */
    .delegate-card-mobile {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1rem;
        margin-bottom: 0.75rem;
        display: none
    }

    .dcm-name {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--text);
        margin-bottom: 0.35rem
    }

    .dcm-meta {
        font-size: 0.8rem;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
        line-height: 1.5
    }

    .dcm-total {
        font-weight: 700;
        color: var(--brand);
        font-size: 0.9rem
    }

    .dcm-actions {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border)
    }

    .validation-summary {
        background: var(--danger-pale);
        border: 1px solid #fecaca;
        border-radius: 10px;
        padding: 0.9rem 1.25rem;
        margin-bottom: 1.5rem;
        display: none
    }

    .validation-summary.visible {
        display: block
    }

    .validation-summary h4 {
        color: #991b1b;
        font-size: 0.85rem;
        margin-bottom: 0.4rem
    }

    .validation-summary ul {
        margin: 0;
        padding-left: 1.25rem;
        color: #7f1d1d;
        font-size: 0.8rem
    }

    .confirmation-note {
        margin-top: 1rem;
        font-size: 0.85rem;
        color: #2d6a4f;
        font-weight: 500;
        min-height: 2rem
    }

    hr {
        border: none;
        border-top: 1px solid #dce2ea;
        margin: 1.5rem 0 0.5rem
    }

    .fine-print {
        font-size: 0.75rem;
        color: var(--text-muted)
    }

    .individual-booking-section,
    .group-booking-section {
        display: none
    }

    .individual-booking-section.visible,
    .group-booking-section.visible {
        display: block
    }

    @media(max-width:600px) {
        .form-group {
            flex: 1 1 100%
        }

        .total-display-box {
            padding: 1.25rem 1.5rem
        }

        .action-bar .btn-primary {
            width: 100%;
            text-align: center;
            justify-content: center
        }

        .radio-group-inline {
            gap: 0.75rem
        }

        .delegates-header {
            flex-direction: column;
            gap: 0.75rem;
            align-items: flex-start
        }

        .booking-features {
            grid-template-columns: 1fr
        }

        /* Swap table for cards on mobile */
        .delegates-table-container {
            display: none
        }

        .delegate-card-mobile {
            display: block
        }

        .delegates-cards-mobile {
            display: block
        }
    }

    .delegates-cards-mobile {
        display: none
    }

    .form-header .meta-pill {
        display: inline-flex
    }

