*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple: #5b4ef8;
    --purple-dark: #4338e0;
    --purple-bg: #eeeefe;
    --gray-light: #f3f4f8;
    --gray-text: #6b7280;
    --border: #e5e7eb;
    --dark: #111827;
    --white: #fff;
    --radius: 14px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--gray-light);
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ── NAV ─────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.nav-inner {
    width: 100%;
    max-width: 1280px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--purple);
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    font-size: .9rem;
    color: #444;
    margin-left: 20px;
}

.nav-links a {
    transition: color .15s;
}

.nav-links a:hover {
    color: var(--purple);
}

.nav-links a.active {
    color: var(--purple);
    font-weight: 600;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-ghost {
    background: none;
    border: none;
    font-size: .9rem;
    color: #333;
    padding: 8px 14px;
}

.btn-purple {
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 9px 20px;
    font-size: .9rem;
    font-weight: 600;
    transition: background .2s;
}

.btn-purple:hover {
    background: var(--purple-dark);
}

/* ── PAGE ────────────────────────────────── */
.page {
    padding-top: 64px;
    min-height: 100vh;
}

/* ── CONTACT HEADER ──────────────────────── */
.contact-header {
    background: var(--gray-light);
    padding: 60px 40px 48px;
    text-align: center;
}

.contact-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.contact-header p {
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 520px;
    margin: auto;
}

/* ── MAIN LAYOUT ─────────────────────────── */
.contact-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px 72px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    align-items: start;
}

/* ── INFO CARDS ──────────────────────────── */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-card {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: border-color .2s, box-shadow .2s;
}

.info-card:hover {
    border-color: #c4bcfd;
    box-shadow: 0 4px 16px rgba(91, 78, 248, .08);
}

.info-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: var(--purple-bg);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--purple);
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-text {
    padding-top: 2px;
}

.info-text .label {
    font-size: .8rem;
    color: var(--gray-text);
    margin-bottom: 4px;
}

.info-text .value {
    font-size: .97rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
}

.info-text .sub {
    font-size: .8rem;
    color: var(--gray-text);
}

/* ── FORM CARD ───────────────────────────── */
.form-card {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 36px 32px;
}

.form-card h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 0;
}

.form-group-full {
    margin-bottom: 18px;
}

.form-group label,
.form-group-full label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.required-star {
    color: #ef4444;
    margin-left: 2px;
}

.form-group input,
.form-group-full input,
.form-group-full textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0 16px;
    font-family: inherit;
    font-size: .9rem;
    color: var(--dark);
    background: white;
    outline: none;
    transition: border-color .2s;
}

.form-group input,
.form-group-full input {
    height: 48px;
}

.form-group input:focus,
.form-group-full input:focus,
.form-group-full textarea:focus {
    border-color: var(--purple);
}

.form-group input[readonly] {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-group input::placeholder,
.form-group-full input::placeholder,
.form-group-full textarea::placeholder {
    color: #adb5bd;
}

.form-group input.error,
.form-group-full input.error,
.form-group-full textarea.error {
    border-color: #ef4444;
}

.form-group-full textarea {
    height: 150px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.6;
}

.err-msg {
    font-size: .78rem;
    color: #ef4444;
    margin-top: 5px;
    display: none;
}

.has-error .err-msg {
    display: block;
}

.btn-send {
    width: 100%;
    height: 52px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 11px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    transition: background .2s, transform .15s;
}

.btn-send:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.btn-send svg {
    width: 18px;
    height: 18px;
}

/* Guest login gate */
.gate-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: 420px;
}

.gate-blur-preview {
    padding: 36px 32px;
    filter: blur(5px);
    opacity: .4;
    pointer-events: none;
    user-select: none;
}

.gate-fake-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.gate-fake-field {
    height: 48px;
    background: var(--gray-light);
    border-radius: 10px;
    border: 1.5px solid var(--border);
}

.gate-fake-full {
    width: 100%;
    margin-bottom: 18px;
}

.gate-fake-tall {
    height: 150px;
    width: 100%;
    margin-bottom: 24px;
}

.gate-fake-btn {
    height: 52px;
    background: var(--purple-bg);
    border-radius: 11px;
    width: 100%;
}

.gate-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 40px;
    text-align: center;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(2px);
}

.gate-icon {
    width: 64px;
    height: 64px;
    background: var(--purple-bg);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--purple);
    margin-bottom: 18px;
    border: 2px solid #c4bcfd;
}

.gate-icon svg {
    width: 28px;
    height: 28px;
}

.gate-overlay h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.gate-overlay p {
    font-size: .9rem;
    color: var(--gray-text);
    line-height: 1.65;
    max-width: 360px;
    margin-bottom: 28px;
}

.gate-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-gate-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 11px 24px;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .15s;
}

.btn-gate-primary:hover {
    background: var(--purple-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-gate-primary svg {
    width: 16px;
    height: 16px;
}

.btn-gate-secondary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--purple);
    border: 1.5px solid var(--purple);
    border-radius: 10px;
    padding: 11px 24px;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.btn-gate-secondary:hover {
    background: var(--purple-bg);
    color: var(--purple);
}

.gate-footnote {
    font-size: .8rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.gate-footnote a {
    color: var(--purple);
    font-weight: 600;
}

.gate-footnote a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .contact-body {
        grid-template-columns: 1fr;
        padding: 0 24px 56px;
    }
}

@media (max-width: 640px) {

    .form-row,
    .gate-fake-row {
        grid-template-columns: 1fr;
    }

    .gate-overlay {
        padding: 32px 24px;
    }

    .gate-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-gate-primary,
    .btn-gate-secondary {
        width: 100%;
        justify-content: center;
    }
}