* {
    box-sizing: border-box;
}

:root {
    --bg: #f3f6fb;
    --card: #ffffff;
    --text: #1d2433;
    --muted: #667085;
    --primary: #1769ff;
    --primary-hover: #0f57d6;
    --border: #dbe2ea;
    --error-bg: #fff1f2;
    --error-border: #fecdd3;
    --error-text: #9f1239;
    --success-bg: #ecfdf3;
    --success-border: #bbf7d0;
    --success-text: #166534;
    --shadow: 0 20px 50px rgba(16, 24, 40, 0.08);
    --radius: 18px;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 100%);
    color: var(--text);
}

.page {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 860px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.hero {
    margin-bottom: 24px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.1;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 8px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 1rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.12);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

small {
    margin-top: 8px;
    color: var(--muted);
}

.input-with-button {
    display: flex;
    gap: 10px;
}

.primary-btn,
.secondary-btn {
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.06s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.primary-btn {
    background: var(--primary);
    color: #fff;
    width: 100%;
}

.primary-btn:hover {
    background: var(--primary-hover);
}

.secondary-btn {
    white-space: nowrap;
    background: #eef4ff;
    color: var(--primary);
}

.primary-btn:active,
.secondary-btn:active {
    transform: translateY(1px);
}

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid;
}

.alert ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.alert-error {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error-text);
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-text);
}

.g-recaptcha {
    overflow: hidden;
}

@media (max-width: 720px) {
    .page {
        padding: 14px;
    }

    .card {
        padding: 18px;
        border-radius: 16px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .input-with-button {
        flex-direction: column;
    }
}