* {
    box-sizing: border-box;
}

:root {
    --guest-bg-deep: #0b1320;
    --guest-bg-soft: #132238;
    --guest-surface: #f3f8ff;
    --guest-panel: #ffffff;
    --guest-ink: #0f172a;
    --guest-muted: #5b6b84;
    --guest-brand: #0ea5a4;
    --guest-brand-strong: #0f766e;
    --guest-line: #d7e3f0;
    --guest-alert-success-bg: #ecfdf3;
    --guest-alert-success-border: #a7f3d0;
    --guest-alert-success-text: #047857;
    --guest-alert-error-bg: #fef2f2;
    --guest-alert-error-border: #fecaca;
    --guest-alert-error-text: #b91c1c;
}

body.guest-page {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--guest-ink);
    background:
        radial-gradient(920px 530px at 10% -16%, rgba(14, 165, 164, 0.24), transparent 70%),
        radial-gradient(760px 520px at 96% 0%, rgba(245, 158, 11, 0.17), transparent 74%),
        linear-gradient(180deg, var(--guest-bg-deep) 0%, var(--guest-bg-soft) 26%, var(--guest-surface) 26%, var(--guest-surface) 100%);
}

.guest-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.guest-shell-narrow {
    max-width: 900px;
}

.guest-header {
    position: sticky;
    top: 0;
    z-index: 15;
    backdrop-filter: blur(8px);
    background: rgba(11, 19, 32, 0.75);
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.guest-nav {
    min-height: 74px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.guest-brand {
    text-decoration: none;
    color: #f8fafc;
    font-weight: 800;
    font-size: 1.04rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.guest-brand::before {
    content: '◆';
    color: #f59e0b;
    font-size: 1.05rem;
}

.guest-menu-toggle {
    display: none;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border-radius: 999px;
    padding: 0.44rem 0.94rem;
    font-weight: 700;
    cursor: pointer;
}

.guest-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guest-links a {
    text-decoration: none;
    color: #dbe7fb;
    padding: 0.47rem 0.78rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.guest-links a:hover {
    background: rgba(148, 163, 184, 0.22);
    color: #ffffff;
}

.guest-links .guest-highlight {
    border: 1px solid rgba(14, 165, 164, 0.5);
    color: #8ff3e0;
}

.guest-main {
    padding: 2.4rem 0 3.6rem;
}

.page-intro {
    margin-bottom: 1.25rem;
}

.page-intro h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    line-height: 1.18;
    color: #0f172a;
}

.page-intro p {
    margin: 0.65rem 0 0;
    color: var(--guest-muted);
    max-width: 70ch;
    line-height: 1.7;
}

.guest-card {
    background: var(--guest-panel);
    border: 1px solid var(--guest-line);
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: 1.35rem;
    margin-bottom: 1rem;
}

.guest-card h2 {
    margin: 0;
    font-size: 1.3rem;
}

.guest-card h3 {
    margin: 1.2rem 0 0.45rem;
    font-size: 1.03rem;
}

.guest-card p {
    margin: 0.65rem 0 0;
    color: #475569;
    line-height: 1.72;
}

.guest-card ul {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    color: #42546d;
}

.guest-card li {
    margin-bottom: 0.45rem;
}

.info-badge {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    background: #ecfeff;
    border: 1px solid #99f6e4;
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 700;
}

.inline-link {
    color: #0f766e;
    text-decoration: none;
}

.inline-link:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #1e293b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.8rem;
    border-radius: 0.65rem;
    border: 1px solid #d4e0ed;
    font-size: 0.95rem;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--guest-brand);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.guest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    border-radius: 0.72rem;
    padding: 0.74rem 1.2rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ecfeff;
    background: linear-gradient(130deg, var(--guest-brand) 0%, var(--guest-brand-strong) 100%);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.28);
}

.guest-alert {
    padding: 0.75rem 0.9rem;
    border-radius: 0.68rem;
    border: 1px solid transparent;
    margin-bottom: 1rem;
    font-size: 0.93rem;
}

.guest-alert-success {
    background: var(--guest-alert-success-bg);
    border-color: var(--guest-alert-success-border);
    color: var(--guest-alert-success-text);
}

.guest-alert-error {
    background: var(--guest-alert-error-bg);
    border-color: var(--guest-alert-error-border);
    color: var(--guest-alert-error-text);
}

.guest-alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.guest-footer {
    border-top: 1px solid #d7e3f0;
    text-align: center;
    color: #5f6f87;
    padding: 1.25rem 1rem 2rem;
    font-size: 0.9rem;
    background: #eef4fc;
}

@media (max-width: 768px) {
    .guest-shell {
        width: min(1120px, calc(100% - 1.4rem));
    }

    .guest-menu-toggle {
        display: inline-flex;
    }

    .guest-nav {
        flex-wrap: wrap;
        min-height: 68px;
        padding: 0.45rem 0;
    }

    .guest-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 0.8rem;
    }

    .guest-links.is-open {
        display: flex;
    }

    .guest-links a {
        text-align: center;
    }

    .guest-main {
        padding-top: 1.8rem;
    }
}
