:root {
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.18);
    --transition: 180ms ease;
}

body[data-theme="dach"] {
    --bg: #07111f;
    --bg-soft: #0d1a2e;
    --panel: rgba(10, 18, 32, 0.88);
    --panel-soft: rgba(18, 28, 46, 0.82);
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f5f7fb;
    --muted: #9dacbf;
    --accent: #d3a84d;
    --accent-2: #f0d58e;
    --success: #66d9a5;
    --error: #ff8f8f;
    --choice-glow: rgba(211, 168, 77, 0.18);
    --hero-grad-a: rgba(211, 168, 77, 0.22);
    --hero-grad-b: rgba(69, 112, 184, 0.16);
}

body[data-theme="mallorca"] {
    --bg: #f5efe5;
    --bg-soft: #fffaf3;
    --panel: rgba(255, 252, 247, 0.92);
    --panel-soft: rgba(255, 247, 236, 0.86);
    --surface: rgba(196, 154, 60, 0.06);
    --border: rgba(149, 106, 38, 0.16);
    --text: #2f2417;
    --muted: #776651;
    --accent: #d78b47;
    --accent-2: #f2c98d;
    --success: #2c9f6b;
    --error: #b95353;
    --choice-glow: rgba(215, 139, 71, 0.14);
    --hero-grad-a: rgba(255, 196, 132, 0.34);
    --hero-grad-b: rgba(255, 240, 218, 0.72);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(circle at top left, var(--hero-grad-a), transparent 36%),
        radial-gradient(circle at top right, var(--hero-grad-b), transparent 42%),
        linear-gradient(180deg, var(--bg-soft), var(--bg));
    color: var(--text);
    padding: 20px 14px 42px;
}

.page-shell {
    width: min(860px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.hero-panel,
.form-panel,
.selection-ui,
.result,
.loading {
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-panel {
    padding: 20px;
}

.form-header {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.form-header-topline,
.hero-badge,
.hero-kicker,
.summary-title {
    letter-spacing: 0.02em;
}

.form-header-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.hero-badge,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 650;
}

.hero-badge {
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--border);
}

.hero-kicker {
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border: 1px solid var(--border);
    opacity: 0.88;
}

.form-eyebrow {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-title {
    margin: 0;
    font-size: clamp(1.65rem, 3.1vw, 2.35rem);
    line-height: 1.06;
    max-width: 15ch;
}

.form-lead {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.4;
    max-width: 46ch;
}

.trust-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 600;
}

.trust-chip::before,
.hero-point::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--choice-glow);
}

.hero-panel {
    display: none;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -60px -70px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--hero-grad-a), transparent 72%);
    pointer-events: none;
}

.hero-panel-card {
    position: relative;
    z-index: 1;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--panel-soft);
}

.hero-panel-kicker {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-panel h2 {
    margin: 0;
    font-size: 1.42rem;
    line-height: 1.15;
}

.hero-panel p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.hero-points {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin: 0;
}

.hero-point {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.88rem;
}

.progress-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    min-width: 66px;
}

.progress-step.active,
.progress-step.completed {
    color: var(--text);
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--accent);
    color: #17120b;
    border-color: transparent;
}

.progress-track {
    height: 4px;
    flex: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 220ms ease;
}

.section-intro h2 {
    margin: 0;
    font-size: 1.12rem;
}

.section-intro p {
    margin: 3px 0 0;
    color: var(--muted);
    line-height: 1.35;
}

.section-intro--compact p {
    font-size: 0.88rem;
}

.form-step {
    display: block;
}

.grid {
    display: grid;
    gap: 12px;
}

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

.form-group {
    margin-top: 12px;
}

.form-group--first {
    margin-top: 12px;
}

.form-group > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 650;
    font-size: 0.9rem;
}

.form-group--optional > label {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-group--optional input,
.form-group--optional textarea {
    background: rgba(255, 255, 255, 0.025);
}

body[data-theme="mallorca"] input,
body[data-theme="mallorca"] select,
body[data-theme="mallorca"] textarea {
    background: rgba(255, 255, 255, 0.75);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--choice-glow);
}

textarea {
    min-height: 88px;
    resize: vertical;
}

.textarea--quiet {
    min-height: 84px;
}

.option-grid {
    display: grid;
    gap: 8px;
}

.option-grid--search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-grid--duration {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 78px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--panel-soft);
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.choice-card:hover,
.choice-card.active {
    transform: translateY(-1px);
    border-color: var(--accent);
    box-shadow: 0 10px 22px var(--choice-glow);
}

.choice-card--soft {
    background: linear-gradient(180deg, var(--panel-soft), rgba(255, 255, 255, 0.03));
}

.choice-card--compact {
    min-height: 64px;
}

.choice-card--featured,
.choice-card--default {
    border-color: rgba(196, 154, 60, 0.35);
    box-shadow: 0 10px 22px rgba(196, 154, 60, 0.10);
}

.choice-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(196, 154, 60, 0.14);
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-title {
    font-weight: 650;
    font-size: 0.94rem;
    line-height: 1.25;
}

.choice-copy {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.28;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-option {
    position: relative;
}

.pill-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pill-option span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.pill-option.active span {
    border-color: var(--accent);
    background: var(--choice-glow);
    color: var(--text);
}

.summary-box,
.consent-box {
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--panel-soft);
}

.summary-title {
    margin-bottom: 6px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.summary-box p,
.consent-box span {
    margin: 0;
    color: var(--muted);
    line-height: 1.42;
}

.summary-box p + p {
    margin-top: 4px;
}

.consent-box label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.consent-box input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.step-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.step-actions--end { justify-content: flex-end; }
.step-actions--between { justify-content: space-between; }

.btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    min-height: 50px;
    padding: 0 22px;
    cursor: pointer;
    transition: transform var(--transition), opacity var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #20170b;
    font-weight: 700;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

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

.location-feedback {
    min-height: 18px;
    margin-top: 8px;
    font-size: 0.82rem;
}

.location-feedback.valid { color: var(--success); }
.location-feedback.invalid { color: var(--error); }
.location-feedback.loading,
.location-feedback.hint { color: var(--muted); }

.location-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.location-suggestions-label {
    width: 100%;
    color: var(--muted);
    font-size: 0.8rem;
}

.suggestion-btn {
    border: 1px solid var(--border);
    background: var(--panel-soft);
    color: var(--text);
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
}

.loading,
.result,
.selection-ui {
    grid-column: 1 / -1;
    margin-top: 24px;
}

.loading {
    display: none;
    padding: 22px;
    text-align: center;
}

.loading.active {
    display: block;
}

.spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 12px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result {
    display: none;
    padding: 22px;
}

.result.success,
.result.error {
    display: block;
}

.result.success {
    border-color: rgba(102, 217, 165, 0.32);
    background: rgba(102, 217, 165, 0.08);
}

.result.thank-you {
    border-color: var(--border);
    background: var(--panel);
}

.result.error {
    border-color: rgba(255, 143, 143, 0.32);
    background: rgba(255, 143, 143, 0.08);
}

.result h3 {
    margin: 0 0 8px;
}

.result p {
    margin: 0 0 8px;
    color: var(--text);
    line-height: 1.6;
}

.result code,
.result a {
    color: inherit;
}

.thank-you-shell {
    display: grid;
    gap: 18px;
}

.thank-you-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.thank-you-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.08;
}

.thank-you-lead {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 58ch;
}

.thank-you-note,
.thank-you-contact-card {
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--panel-soft);
}

.thank-you-note {
    padding: 18px 20px;
    color: var(--muted);
    line-height: 1.6;
}

.thank-you-note strong {
    color: var(--text);
}

.thank-you-meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.thank-you-contact-card {
    padding: 22px;
}

.thank-you-selection-card {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(211, 168, 77, 0.28);
    background: linear-gradient(180deg, rgba(196, 154, 60, 0.12), rgba(196, 154, 60, 0.06));
}

.thank-you-selection-card--hint {
    border-color: var(--border);
    background: var(--panel-soft);
}

.thank-you-selection-card h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.thank-you-selection-card p {
    margin: 0;
    color: var(--muted);
}

.thank-you-selection-kicker {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thank-you-selection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.thank-you-link-selection {
    background: var(--accent);
    color: #121212;
}

.thank-you-contact-kicker {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thank-you-contact-card h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.thank-you-contact-card p {
    margin: 0;
    color: var(--muted);
}

.thank-you-contact-person {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
}

.thank-you-contact-person img {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(211, 168, 77, 0.28);
}

.thank-you-contact-name {
    font-weight: 700;
    color: var(--text);
}

.thank-you-contact-role {
    color: var(--muted);
}

.thank-you-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thank-you-link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.thank-you-link-whatsapp {
    background: #25D366;
    color: #08140d;
}

.thank-you-link-phone {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
}

.selection-ui {
    padding: 24px;
}

.selection-header {
    margin-bottom: 18px;
}

.selection-header h2 {
    margin: 0 0 8px;
}

.event-info,
.selected-count {
    color: var(--muted);
}

.cards-container {
    display: grid;
    gap: 14px;
}

.artist-card {
    border: 1px solid var(--border);
    background: var(--panel-soft);
    border-radius: 22px;
    padding: 18px;
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.artist-card:hover,
.artist-card.selected,
.artist-card.super-liked {
    transform: translateY(-1px);
    border-color: var(--accent);
    box-shadow: 0 14px 30px var(--choice-glow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.artist-name {
    margin: 0;
    font-size: 1.05rem;
}

.artist-category,
.artist-description {
    color: var(--muted);
}

.artist-price {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.action-btn,
.submit-selection {
    border-radius: 999px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
}

.action-btn.active,
.submit-selection {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #20170b;
    font-weight: 700;
}

.action-btn.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.selection-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.superlike-hint {
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
}

@media (max-width: 1024px) {
    .page-shell {
        grid-template-columns: 1fr;
    }

    .form-panel {
        order: 1;
    }

    .hero-panel {
        order: 2;
        position: relative;
        top: 0;
    }
}

@media (max-width: 780px) {
    .grid-2,
    .card-actions {
        grid-template-columns: 1fr;
    }

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

    .option-grid--duration .choice-card:last-child {
        grid-column: 1 / -1;
    }

    .step-actions,
    .selection-footer,
    .thank-you-contact-person {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .submit-selection,
    .action-btn,
    .thank-you-link {
        width: 100%;
    }
}

@media (max-width: 560px) {
    body {
        padding: 12px 8px 28px;
    }

    .hero-panel {
        display: none;
    }

    .form-panel,
    .selection-ui,
    .loading,
    .result {
        border-radius: 18px;
        padding: 16px;
    }

    .form-header {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .form-title {
        max-width: none;
        font-size: 1.62rem;
    }

    .form-lead {
        margin-top: 8px;
        font-size: 0.91rem;
        line-height: 1.4;
    }

    .trust-inline {
        gap: 6px;
        margin-top: 12px;
    }

    .trust-chip {
        min-height: 32px;
        padding: 0 11px;
        font-size: 0.75rem;
    }

    .progress-bar {
        gap: 8px;
        margin-bottom: 18px;
    }

    .progress-step {
        min-width: 58px;
        gap: 6px;
    }

    .step-label {
        font-size: 0.76rem;
    }

    .section-intro p {
        font-size: 0.88rem;
    }

    .form-group {
        margin-top: 12px;
    }

    .option-grid--search,
    .option-grid--duration {
        gap: 8px;
    }

    .choice-card {
        min-height: 80px;
        padding: 12px;
    }

    .choice-card--compact {
        min-height: 70px;
    }

    .choice-title {
        font-size: 0.92rem;
    }

    .choice-copy {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .pill-grid {
        gap: 7px;
    }

    .pill-option span {
        min-height: 40px;
        padding: 0 14px;
        font-size: 0.9rem;
    }

    .summary-box,
    .consent-box {
        margin-top: 16px;
        padding: 13px 14px;
    }
}
