/* =====================================================
   Vahid Zabet — Pixel-perfect responsive replica
   ===================================================== */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black:        #000000;
    --white:        #FFFFFF;
    --red:          #FF0000;
    --red-dim:      #cc0000;
    --gray-border:  #DDDDDD;
    --gray-bg:      #F5F5F5;
}

html { -webkit-text-size-adjust: 100%; }

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Vazirmatn', 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* Latin text inside RTL doc gets LTR direction */
.ltr { direction: ltr; unicode-bidi: embed; }

/* =====================================================
   PAGE 1 — FORM
   ===================================================== */

.page-form {
    display: flex;
    justify-content: center;
    padding: 40px 20px 80px;
}

.form-container {
    width: 100%;
    max-width: 560px;
    text-align: center;
}

/* Hero photo (B&W person covering face — full body shot) */
.hero-photo {
    margin: 0 auto 36px;
    width: 100%;
    max-width: 620px;
    display: flex;
    justify-content: center;
}
.hero-photo img {
    width: 100%;
    max-width: 100%;
    border: none;
}

/* Headings */
.main-heading {
    color: var(--red);
    font-size: clamp(20px, 5vw, 30px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
    padding: 0 6px;
}

.subheading {
    color: var(--red);
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 3.6vw, 20px);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 28px;
    direction: ltr;
}

/* Form */
.contact-form {
    text-align: right;
    direction: rtl;
}

.form-group {
    margin-bottom: 14px;
    text-align: right;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 3px;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 15px;
    color: #333;
    text-align: right;
    direction: rtl;
    transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #777;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.15);
}

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

.form-group label {
    display: block;
    margin-top: 8px;
    margin-bottom: 4px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.form-note {
    color: var(--white);
    font-size: 12px;
    opacity: 0.85;
    direction: ltr;
    text-align: right;
    font-family: 'Inter', sans-serif;
}

/* Red dashed separator */
.separator {
    border: none;
    border-top: 1px dashed var(--red);
    margin: 18px 0;
    height: 0;
}

/* reCAPTCHA placeholder */
.recaptcha {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--gray-bg);
    border: 1px solid var(--gray-border);
    border-radius: 3px;
    padding: 0;
    margin: 18px 0 22px;
    width: 100%;
    max-width: 300px;
    direction: ltr;
}
.recaptcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #333;
    font-family: 'Inter', sans-serif;
    flex: 1;
}
.recaptcha-check {
    width: 26px;
    height: 26px;
    border: 1px solid #999;
    border-radius: 2px;
    display: inline-block;
    background: #fff;
}
.recaptcha-brand {
    border-left: 1px solid var(--gray-border);
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #555;
    gap: 2px;
}
.recaptcha-brand span:first-child {
    font-weight: 700;
    color: #2196f3;
    font-size: 11px;
}

/* Submit button */
.submit-btn {
    display: block;
    width: 100%;
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    direction: ltr;
}
.submit-btn:hover  { background: var(--red-dim); }
.submit-btn:active { transform: scale(0.99); }

/* =====================================================
   PAGE 2 — THANK YOU / CONTACT
   ===================================================== */

.page-thanks {
    display: flex;
    justify-content: center;
    padding: 40px 20px 60px;
}

.thanks-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.persian-intro {
    color: var(--white);
    font-size: clamp(16px, 3.2vw, 20px);
    font-weight: 400;
    line-height: 1.9;
    margin-bottom: 22px;
    padding: 0 8px;
    direction: rtl;
}

.english-intro {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 3.2vw, 20px);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 30px;
    direction: ltr;
}

/* Vahid photo — wide aspect ratio crop (1160x500 ≈ 2.32:1) */
.vahid-photo {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 36px;
    line-height: 0;
}
.vahid-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact box with red border */
.contact-box {
    border: 4px solid var(--red);
    padding: 30px 24px 28px;
    margin-top: 16px;
}

.contact-title-fa {
    color: var(--red);
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 700;
    margin-bottom: 6px;
    direction: rtl;
}
.contact-title-en {
    color: var(--red);
    font-family: 'Inter', sans-serif;
    font-size: clamp(18px, 4vw, 28px);
    font-weight: 700;
    margin-bottom: 22px;
    direction: ltr;
}

/* Contact list with red circle icons */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}
.contact-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--white);
    font-size: clamp(17px, 3.2vw, 26px);
    direction: ltr;
}
.contact-ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-ico svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Social media row */
.social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 22px 0 16px;
}
.social-ico {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.social-ico svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.social-ico:hover {
    transform: scale(1.08);
    opacity: 0.92;
}

/* Brand colors */
.ico-telegram  { background: #0088cc; }
.ico-whatsapp  { background: #25d366; }
.ico-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.ico-twitter   { background: #000; border: 1px solid #fff; }
.ico-facebook  { background: #1877f2; }
.ico-linkedin  { background: #0a66c2; }
.ico-pinterest { background: #e60023; }
.ico-threads   { background: #f77b00; }
.ico-youtube   { background: #ff0000; }
.ico-tiktok    { background: #000; border: 1px solid #fff; }
.ico-snapchat  { background: #fffc00; color: #000; }

.social-handle {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: clamp(18px, 3.2vw, 26px);
    margin-top: 12px;
    direction: ltr;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
    .page-form,
    .page-thanks {
        padding: 28px 16px 50px;
    }
    .form-container {
        max-width: 100%;
    }
    .hero-photo {
        max-width: 320px;
        margin-bottom: 22px;
    }
    .main-heading {
        font-size: clamp(18px, 5vw, 24px);
    }
    .contact-box {
        padding: 22px 14px;
        border-width: 3px;
    }
    .contact-list li {
        gap: 10px;
        font-size: 16px;
    }
    .contact-ico {
        width: 32px;
        height: 32px;
    }
    .contact-ico svg {
        width: 17px;
        height: 17px;
    }
    .social-ico {
        width: 36px;
        height: 36px;
    }
    .social-ico svg {
        width: 18px;
        height: 18px;
    }
    .social-row {
        gap: 8px;
    }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
    .page-form,
    .page-thanks {
        padding: 20px 12px 36px;
    }
    .hero-photo {
        max-width: 240px;
        margin-bottom: 18px;
    }
    .main-heading {
        font-size: 17px;
        line-height: 1.5;
    }
    .subheading {
        font-size: 14px;
    }
    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
    }
    .form-group label {
        font-size: 13px;
    }
    .form-note {
        font-size: 11px;
    }
    .submit-btn {
        font-size: 14px;
        padding: 12px 18px;
    }
    .persian-intro,
    .english-intro {
        font-size: 15px;
    }
    .contact-box {
        padding: 18px 10px;
    }
    .contact-title-fa { font-size: 20px; }
    .contact-title-en { font-size: 17px; }
    .contact-list {
        gap: 10px;
    }
    .contact-list li {
        font-size: 14px;
        gap: 8px;
        flex-wrap: wrap;
        word-break: break-word;
        text-align: center;
    }
    .contact-ico {
        width: 28px;
        height: 28px;
    }
    .contact-ico svg {
        width: 14px;
        height: 14px;
    }
    .social-ico {
        width: 32px;
        height: 32px;
    }
    .social-ico svg {
        width: 16px;
        height: 16px;
    }
    .social-row {
        gap: 6px;
    }
    .social-handle {
        font-size: 15px;
    }
}

/* Very small mobile (≤ 360px) */
@media (max-width: 360px) {
    .contact-list li {
        font-size: 12px;
    }
    .social-ico {
        width: 28px;
        height: 28px;
    }
    .social-row {
        gap: 5px;
    }
}

/* Desktop large (≥ 1200px) */
@media (min-width: 1200px) {
    .form-container {
        max-width: 600px;
    }
    .main-heading {
        font-size: 30px;
    }
    .thanks-container {
        max-width: 1000px;
    }
    .contact-list li {
        font-size: 22px;
        gap: 18px;
    }
    .contact-ico {
        width: 42px;
        height: 42px;
    }
    .contact-ico svg {
        width: 22px;
        height: 22px;
    }
    .social-ico {
        width: 44px;
        height: 44px;
    }
    .social-ico svg {
        width: 22px;
        height: 22px;
    }
    .social-row {
        gap: 12px;
    }
}
