/* Vazirmatn - local (no CDN) */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #3b2a2f 0, #120d10 55%, #050307 100%);
    color: #fdf7f2;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.page {
    width: 100%;
    max-width: 480px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
}

.logo-circle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: conic-gradient(from 200deg, #ffb347, #ff7e5f, #7f5539, #ffb347);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.logo-text {
    font-weight: 800;
    color: #1b120e;
    font-size: 22px;
}

.brand {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.04em;
}

.subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: #d1c1b3;
}

.card {
    background: rgba(17, 12, 11, 0.9);
    border-radius: 24px;
    padding: 20px 18px 18px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(14px);
}

.step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-title {
    margin: 0;
    font-size: 20px;
}

.step-desc {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: #e2d3c4;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.field-label {
    color: #f6e7d8;
}

.field-input-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.field-prefix {
    padding: 10px 14px;
    font-size: 14px;
    color: #e6d3c1;
    background: linear-gradient(135deg, rgba(255, 184, 112, 0.13), rgba(255, 126, 95, 0.08));
    border-right: 1px solid rgba(0, 0, 0, 0.6);
}

input[type="tel"],
input[type="text"] {
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 16px;
    width: 100%;
}

input[type="text"] {
    border-radius: 999px;
}

input::placeholder {
    color: rgba(233, 211, 186, 0.55);
}

input:focus-visible {
    outline: 2px solid rgba(255, 184, 112, 0.85);
    outline-offset: 2px;
}

.btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #ffb347, #ff7e5f);
    color: #1b120e;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn-secondary {
    background: transparent;
    color: #f8e6d6;
    border: 1px solid rgba(255, 184, 112, 0.55);
}

.btn-secondary:hover {
    background: rgba(255, 184, 112, 0.08);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.02);
    color: #f8e6d6;
    border: 1px dashed rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

.helper-text {
    margin: 4px 4px 0;
    font-size: 12px;
    color: #d8c6b5;
}

.alert {
    border-radius: 16px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.alert-error {
    background: rgba(255, 76, 76, 0.06);
    color: #ffd2d2;
    border: 1px solid rgba(255, 102, 102, 0.3);
}

.step-done .step-title {
    font-size: 21px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.contact {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.contact-title {
    margin: 0 0 6px;
    color: #f6e1cf;
}

.contact-item {
    margin: 2px 0;
}

.contact-label {
    color: #e4d2c3;
}

.contact-value {
    color: #fff6ec;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: #c9b6a5;
    padding-bottom: 4px;
}

@media (min-width: 540px) {
    .page {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .card {
        padding: 22px 20px 20px;
    }
}

