@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
    --pistachio-deep: #4a5d3a;
    --pistachio: #7a9b5e;
    --pistachio-light: #b8cf9e;
    --cream: #f7f3e8;
    --saffron: #c9922f;
    --shell-brown: #6b5842;
    --ink: #2c2a24;
    --error: #b3452c;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--cream);
    color: var(--ink);
    direction: rtl;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 8% 15%, rgba(122,155,94,0.12) 0, transparent 45%),
        radial-gradient(circle at 92% 85%, rgba(201,146,47,0.10) 0, transparent 45%);
}

.page {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

.brand-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-header .mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--pistachio-deep);
    margin-bottom: 14px;
}

.brand-header .mark svg { width: 34px; height: 34px; }

.brand-header .brand-name {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pistachio-deep);
    margin: 0 0 8px;
    letter-spacing: 0.02em;
    direction: ltr;
}

.brand-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pistachio-deep);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.brand-header p {
    color: var(--shell-brown);
    font-size: 0.95rem;
    margin: 0;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: 0 1px 2px rgba(44,42,36,0.04), 0 12px 32px rgba(74,93,58,0.08);
    border: 1px solid rgba(122,155,94,0.15);
}

.promo-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--pistachio-deep), var(--pistachio));
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.7;
}

.promo-strip strong { font-weight: 800; color: var(--cream); }

.field { margin-bottom: 20px; }

.field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--shell-brown);
    margin-bottom: 8px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2dcc9;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fbfaf5;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}

.field input:focus {
    outline: none;
    border-color: var(--pistachio);
    box-shadow: 0 0 0 3px rgba(122,155,94,0.18);
    background: #fff;
}

.field-error {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 6px;
}

.field input.has-error { border-color: var(--error); }

fieldset {
    border: none;
    padding: 0;
    margin: 0 0 24px;
}

fieldset legend {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--shell-brown);
    margin-bottom: 10px;
    padding: 0;
}

.flavor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.flavor-option {
    position: relative;
}

.flavor-option input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.flavor-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 8px;
    border: 1.5px solid #e2dcc9;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--shell-brown);
    background: #fbfaf5;
    cursor: pointer;
    transition: all .15s;
    min-height: 48px;
}

.flavor-option input:checked + label {
    border-color: var(--pistachio-deep);
    background: var(--pistachio-light);
    color: var(--pistachio-deep);
}

.flavor-option input:focus-visible + label {
    outline: 2px solid var(--pistachio);
    outline-offset: 2px;
}

button[type="submit"], .btn {
    width: 100%;
    padding: 14px;
    background: var(--pistachio-deep);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
    text-align: center;
    text-decoration: none;
    display: block;
}

button[type="submit"]:hover, .btn:hover { background: #3d4d2f; }
button[type="submit"]:active { transform: scale(0.98); }

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert-error { background: #fbe9e4; color: var(--error); border: 1px solid #f0c4b8; }
.alert-success { background: #eaf1e2; color: var(--pistachio-deep); border: 1px solid var(--pistachio-light); }

.success-page {
    text-align: center;
    padding: 40px 20px;
}

.success-page .icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--pistachio-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-page h1 {
    color: var(--pistachio-deep);
    font-size: 1.35rem;
    margin: 0 0 10px;
}

.success-page p {
    color: var(--shell-brown);
    line-height: 1.8;
    margin-bottom: 24px;
}

@media (max-width: 420px) {
    .card { padding: 24px 18px; }
    .flavor-grid { grid-template-columns: 1fr 1fr; }
}
