/* The short event enquiry, dressed like the calculator it stands in for (calculator.css) and the
   design system (docs/questrooms-design-system.md): Ground page, Surface panel, Surface 2 fields,
   one mint CTA, radii 12 / 16 / pill, glow instead of shadows. */

.ee {
    padding: calc(112px + var(--announce-h, 0px)) 16px 48px;
    background: var(--qr-bg, #0c111d);
    color: var(--qr-text, #fff);
    font-family: var(--qr-body, 'Cabin', sans-serif);
    font-size: 16px;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .ee {
        padding-top: calc(96px + var(--announce-h, 0px));
        padding-bottom: 64px;
    }
}

.ee-wrap {
    max-width: 760px;
    margin: 0 auto;
}

/* ---------- Heading, as on the calculator ---------- */

.ee-head {
    margin: 0 auto 20px;
    text-align: center;
}

.ee-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    border: 1px solid rgba(66, 220, 163, 0.4);
    border-radius: 9999px;
    background: var(--qr-mint-soft, rgba(66, 220, 163, 0.12));
    color: var(--qr-mint, #42dca3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ee .ee-title {
    margin: 0 0 8px;
    font-family: var(--qr-display, 'Saira Stencil One', sans-serif) !important;
    font-size: clamp(28px, 4.4vw, 40px) !important;
    font-weight: 400 !important;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-wrap: balance;
}

.ee-lead {
    max-width: 60ch;
    margin: 0 auto;
    color: var(--qr-muted, rgba(255, 255, 255, 0.64));
    font-size: 16px !important;
}

/* ---------- Panel ---------- */

.ee-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--qr-hairline, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    background: var(--qr-surface, #17212a);
}

.ee-section {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ee-label {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    color: var(--qr-faint, rgba(255, 255, 255, 0.4));
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ee-optional {
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
}

/* ---------- Event type cards, as on the calculator's first step ---------- */

.ee-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ee-type {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--qr-hairline, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    background: var(--qr-surface-2, #1e2a35);
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ee-type input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ee-type:hover {
    border-color: var(--qr-mint, #42dca3);
    transform: translateY(-1px);
}

.ee-type:has(input:checked) {
    border-color: var(--qr-mint, #42dca3);
    box-shadow: var(--qr-glow, 0 0 0 3px rgba(66, 220, 163, 0.18));
}

.ee-type:has(input:focus-visible) {
    border-color: var(--qr-mint, #42dca3);
    box-shadow: var(--qr-glow, 0 0 0 3px rgba(66, 220, 163, 0.18));
}

.ee-type-icon {
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--qr-mint-soft, rgba(66, 220, 163, 0.12));
    color: var(--qr-mint, #42dca3);
    font-size: 14px;
}

.ee-type-title {
    color: var(--qr-text, #fff);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.ee-type-note {
    color: var(--qr-muted, rgba(255, 255, 255, 0.64));
    font-size: 12px;
    line-height: 1.3;
}

/* ---------- Fields ---------- */

/* Six tracks: people, date and time share the first row; email and phone the last. */
.ee-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px 12px;
}

.ee-grid > .ee-field {
    grid-column: span 2;
}

.ee-grid > .ee-field-wide {
    grid-column: 1 / -1;
}

.ee-grid > .ee-field-half {
    grid-column: span 3;
}

.ee-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ee-field-wide {
    grid-column: 1 / -1;
}

.ee-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--qr-hairline-strong, rgba(255, 255, 255, 0.2));
    border-radius: 12px;
    background: var(--qr-surface-2, #1e2a35);
    color: var(--qr-text, #fff);
    font: 400 16px/1.4 var(--qr-body, 'Cabin', sans-serif);
    color-scheme: dark;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ee-input::placeholder {
    color: var(--qr-faint, rgba(255, 255, 255, 0.4));
}

.ee-input:focus {
    border-color: var(--qr-mint, #42dca3);
    box-shadow: var(--qr-glow, 0 0 0 3px rgba(66, 220, 163, 0.18));
    outline: none;
}

.ee-input.is-invalid {
    border-color: var(--qr-danger, #ff6b6b);
}

/* Native pickers, dressed as the design system's select: mint chevron, dark options, no browser
   chrome. The date keeps its native calendar (the one a phone opens) with a mint icon. */
.ee-select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2342dca3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.ee-select option {
    background: var(--qr-surface-2, #1e2a35);
    color: var(--qr-text, #fff);
}

.ee-select:invalid,
.ee-select option[value=""] {
    color: var(--qr-faint, rgba(255, 255, 255, 0.4));
}

.ee-input[type="date"] {
    cursor: pointer;
}

.ee-input[type="date"]::-webkit-calendar-picker-indicator {
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342dca3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2'/%3e%3cpath d='M16 2v4M8 2v4M3 10h18'/%3e%3c/svg%3e");
    background-size: contain;
    cursor: pointer;
    opacity: 1;
}

.ee-input[type="date"]::-webkit-datetime-edit-text,
.ee-input[type="date"]:not(:focus)::-webkit-datetime-edit-day-field,
.ee-input[type="date"]:not(:focus)::-webkit-datetime-edit-month-field,
.ee-input[type="date"]:not(:focus)::-webkit-datetime-edit-year-field {
    color: var(--qr-text, #fff);
}

textarea.ee-input {
    resize: vertical;
}

.ee-hint,
.ee-privacy {
    margin: 4px 0 0;
    color: var(--qr-faint, rgba(255, 255, 255, 0.4));
    font-size: 12px !important;
}

.ee-field-error {
    margin: 6px 0 0;
    color: var(--qr-danger, #ff6b6b);
    font-size: 14px;
}

.ee-error {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 12px;
    background: rgba(255, 107, 107, 0.08);
    color: var(--qr-danger, #ff6b6b);
    font-size: 14px !important;
}

/* ---------- Contact method pills ---------- */

.ee-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ee-pill {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.ee-pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ee-pill span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid var(--qr-hairline-strong, rgba(255, 255, 255, 0.2));
    border-radius: 9999px;
    color: var(--qr-text, #fff);
    font-size: 15px;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.ee-pill:hover span {
    border-color: var(--qr-mint, #42dca3);
}

.ee-pill input:checked + span {
    border-color: var(--qr-mint, #42dca3);
    background: var(--qr-mint-soft, rgba(66, 220, 163, 0.12));
    color: var(--qr-mint, #42dca3);
}

.ee-pill input:focus-visible + span {
    box-shadow: var(--qr-glow, 0 0 0 3px rgba(66, 220, 163, 0.18));
}

/* ---------- Submit ---------- */

.ee-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ee-submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 9999px;
    background: var(--qr-mint, #42dca3);
    color: var(--qr-bg, #0c111d);
    font: 700 15px/1 var(--qr-body, 'Cabin', sans-serif);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.ee-submit:hover,
.ee-submit:focus-visible {
    background: var(--qr-mint-hover, #38c895);
    transform: translateY(-1px);
    outline: none;
}

.ee-privacy {
    text-align: center;
}

/* ---------- Thank you ---------- */

.ee-sent {
    align-items: center;
    text-align: center;
}

.ee .ee-sent-title {
    margin: 0;
    font-family: var(--qr-display, 'Saira Stencil One', sans-serif) !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    text-transform: uppercase;
}

.ee-text {
    max-width: 52ch;
    margin: 0;
    color: var(--qr-muted, rgba(255, 255, 255, 0.64));
}

/* ---------- Phone ---------- */

@media (max-width: 767px) {
    .ee-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ee-card {
        gap: 18px;
        padding: 16px;
    }

    .ee-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ee-grid > .ee-field:first-child {
        grid-column: 1 / -1;
    }

    .ee-grid > .ee-field,
    .ee-grid > .ee-field-half {
        grid-column: span 1;
    }

    .ee-grid > .ee-field-wide {
        grid-column: 1 / -1;
    }

    .ee-type {
        padding: 8px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ee-type,
    .ee-submit {
        transition: none;
    }
}
