:root {
    --app-primary: #154dac;
    --app-primary-alt: #0d6efd;
    --app-surface: #ffffff;
    --app-text: rgba(0, 0, 0, 0.78);
    --app-muted: #6c757d;
    --app-border: rgba(21, 77, 172, 0.14);
    --app-shadow: 0 18px 42px rgba(7, 28, 73, 0.16);
    --app-radius: 24px;
    --app-gap: clamp(1rem, 2vw, 1.5rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    color: var(--app-text);
    background: #eef4ff;
}

img {
    max-width: 100%;
    height: auto;
}

.page-shell {
    min-height: 100vh;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.page-shell.page-shell--primary {
    background: linear-gradient(160deg, #154dac 0%, #0c3a8c 100%);
}

.page-shell.page-shell--alt {
    background: linear-gradient(160deg, #0d6efd 0%, #0b56cb 100%);
}

.page-card {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2.25rem);
    background: var(--app-surface);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
}

.page-card.page-card--narrow {
    max-width: 760px;
}

.page-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(260px, 38vw, 400px);
    text-align: center;
    margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

.page-media img {
    display: block;
    width: min(100%, 860px);
    height: clamp(260px, 38vw, 400px);
    object-fit: contain;
    object-position: center;
}

.content-narrow {
    width: min(100%, 640px);
    margin: 0 auto;
}

.result-box {
    padding: clamp(1rem, 2.2vw, 1.5rem);
    border: 1px solid var(--app-border);
    border-radius: 18px;
    background: #f8fbff;
}

.section-stack > * + * {
    margin-top: 1rem;
}

.action-row {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-responsive,
.btn-responsive.btn,
.btn-responsive.btn-lg {
    width: 100%;
    min-height: 52px;
    white-space: normal;
}

.hero-stat,
.hero-title,
.hero-message {
    text-align: center;
}

.hero-stat {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(21, 77, 172, 0.08);
    color: var(--app-primary);
    font-weight: 600;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.1;
}

.hero-message {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.responsive-form {
    font-size: 1rem;
}

.responsive-form .form-group,
.responsive-form .mb-group {
    display: grid;
    gap: 0.9rem;
}

.responsive-form label {
    line-height: 1.5;
}

.form-check--center {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    margin: 0 auto;
}

.form-check--center .form-check-input {
    float: none;
    margin-top: 0.3rem;
    margin-left: 0;
    flex: 0 0 auto;
}

.form-check--center .form-check-label {
    margin: 0;
    max-width: 36rem;
}

.responsive-form .form-control,
.responsive-form select,
.responsive-form input {
    min-height: 48px;
}

.responsive-form input[type="checkbox"] {
    min-height: 1rem;
    width: 1rem;
    height: 1rem;
}

.contact-banner {
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: var(--app-primary);
    color: #fff;
    text-align: center;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.guest-grid {
    display: grid;
    gap: 0.85rem;
}

.guest-row {
    display: grid;
    gap: 0.85rem;
    padding: 0.95rem;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: #f8fbff;
}

.legacy-info-grid {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.legacy-info-grid .col,
.legacy-info-grid [class*="col-"] {
    width: 100%;
}

.legacy-photo img {
    max-width: min(100%, 300px);
    border-radius: 18px;
}

.status-copy label,
.status-copy p,
.status-copy span {
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .page-shell {
        display: flex;
        align-items: center;
    }

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

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

    .guest-row {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        align-items: center;
    }

    .legacy-info-grid {
        grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .page-card {
        border-radius: 18px;
    }

    .page-card .row {
        margin-left: 0;
        margin-right: 0;
    }

    .page-card [class*="col-"] {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .form-check--center {
        gap: 0.6rem;
    }

    .form-check--center .form-check-label {
        max-width: 100%;
    }
}
