/* ============================================
   دست چپ - سفارش قاب عکس آنلاین
   DastChap - Photo Frame Landing Styles
   الگو: studio3d/assets/css/studio.css
   ============================================ */

:root {
    --bg: #0a1210;
    --bg-2: #0e1a16;
    --card: #101f1a;
    --card-2: #142620;
    --border: #1e3a30;
    --border-2: #27493c;
    --text: #eaf4ef;
    --text-2: #a8c4b6;
    --muted: #6f8f80;
    --accent: #4ade80;
    --accent-2: #22c55e;
    --gold: #fbbf24;
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: Vazirmatn, 'Segoe UI', Tahoma, sans-serif;
    background:
        radial-gradient(900px 500px at 90% -5%, rgba(74, 222, 128, 0.07), transparent 60%),
        radial-gradient(700px 400px at 5% 30%, rgba(251, 191, 36, 0.05), transparent 60%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.9;
}

/* ===== نوار بالا ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    background: rgba(10, 18, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.topbar-side { display: flex; align-items: center; gap: 10px; min-width: 0; }

.home-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 10px;
    transition: 0.2s;
}
.home-back:hover { color: var(--text); background: rgba(74, 222, 128, 0.08); }

.crumb-sep { color: var(--border-2); font-size: 15px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}
.brand b { color: var(--accent); font-weight: 800; }

.tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-2);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 12px;
    text-decoration: none;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    transition: 0.2s;
}
.tb-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--card-2); }

/* ===== هیرو ===== */
.hero { padding: 56px 18px 34px; text-align: center; }

.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 222, 128, 0.10);
    border: 1px solid rgba(74, 222, 128, 0.30);
    color: var(--accent);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #eaf4ef 55%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: var(--text-2);
    font-size: 15px;
    max-width: 620px;
    margin: 0 auto 20px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 24px;
}
.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
}
.hero-trust i { font-style: normal; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #06130d;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(74, 222, 128, 0.4); }

/* ===== فرم سفارش ===== */
.order-section { padding: 10px 18px 30px; }

.order-card {
    max-width: 680px;
    margin: 0 auto;
    background: linear-gradient(160deg, var(--card-2), var(--card));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.order-head { text-align: center; margin-bottom: 26px; }
.order-head h2 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.order-head p { color: var(--muted); font-size: 13px; }

.step-block { margin-bottom: 24px; }

.step-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: rgba(74, 222, 128, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

/* --- دراپ‌زون --- */
.dropzone {
    display: block;
    border: 2px dashed var(--border-2);
    border-radius: var(--radius);
    background: rgba(74, 222, 128, 0.03);
    cursor: pointer;
    transition: 0.2s;
    overflow: hidden;
}
.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent);
    background: rgba(74, 222, 128, 0.07);
}

.dropzone-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 34px 16px;
    color: var(--text-2);
}
.dropzone-empty svg { color: var(--accent); margin-bottom: 4px; }
.dropzone-empty strong { font-size: 14px; color: var(--text); }
.dropzone-empty span { font-size: 11.5px; color: var(--muted); }

.dropzone-preview { position: relative; }
.dropzone-preview img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25);
}

/* پیش‌نمایش زنده رنگ قاب: دور عکس با انتخاب کاربر قاب رنگی می‌گیرد */
.dropzone-preview .dz-frame-sim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: 0.25s;
    display: none;
}
.dropzone-preview.has-color .dz-frame-sim { display: block; }
.dropzone-preview .dz-frame-sim::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 14px solid transparent;
    transition: border-color 0.25s;
}
.dropzone-preview.fpc-black .dz-frame-sim::before { border-color: #15181c; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.14), inset 0 0 22px rgba(0,0,0,0.5); }
.dropzone-preview.fpc-white .dz-frame-sim::before { border-color: #f4f2ec; box-shadow: inset 0 0 0 2px rgba(0,0,0,0.25); }
.dropzone-preview .dz-frame-sim::after {
    content: 'پیش‌نمایش رنگ قاب';
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-2);
    background: rgba(10, 18, 16, 0.8);
    border: 1px solid var(--border);
    padding: 2px 9px;
    border-radius: 50px;
}

.dz-change {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(10, 18, 16, 0.85);
    border: 1px solid var(--border-2);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 10px;
}

/* --- انواع قاب --- */
.frame-types { display: grid; gap: 10px; }

.frame-type-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: 0.2s;
}
.frame-type-card:hover { border-color: var(--border-2); }
/* فقط رادیو «نوع قاب» (فرزند مستقیم کارت) حالت انتخاب‌شده می‌سازد؛
   سواچ‌های رنگ داخل کارت نباید کارت را select کنند */
.frame-type-card:has(> input:checked) {
    border-color: var(--accent);
    background: rgba(74, 222, 128, 0.06);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.10);
}
.frame-type-card input { position: absolute; opacity: 0; pointer-events: none; }

.ftc-body { flex: 1; min-width: 0; }
.ftc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.ftc-name { font-size: 14.5px; font-weight: 800; color: var(--text); }
.ftc-price { font-size: 14px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.ftc-price small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.ftc-desc { font-size: 12px; color: var(--muted); }

/* --- انتخاب رنگ قاب --- */
.ftc-colors {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px dashed var(--border);
}

.ftc-colors-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    margin-left: 4px;
}

.color-swatch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 3px 10px 3px 5px;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}
.color-swatch:hover { border-color: var(--border-2); }
.color-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.color-swatch em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-2); transition: 0.2s; }

.sw-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-2);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: 0.2s;
}
.c-white .sw-dot { border-color: rgba(255, 255, 255, 0.35); }

/* حالت انتخاب‌شده: حلقه رنگی + علامت تیک */
.color-swatch:has(input:checked) {
    border-color: var(--accent);
    background: rgba(74, 222, 128, 0.07);
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.15);
}
.color-swatch:has(input:checked) em { color: var(--accent); }
.color-swatch:has(input:checked) .sw-dot { border-color: var(--accent); }

.ftc-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--border-2);
    color: transparent;
    flex-shrink: 0;
    transition: 0.2s;
}
.frame-type-card:has(> input:checked) .ftc-check {
    background: var(--accent);
    border-color: var(--accent);
    color: #06130d;
}

/* --- فیلدهای فرم --- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-col { display: flex; flex-direction: column; gap: 6px; }

.order-card label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-2);
}

.order-card input[type="text"],
.order-card input[type="tel"],
.order-card textarea {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}
.order-card input:focus, .order-card textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
}
.order-card input::placeholder, .order-card textarea::placeholder { color: var(--muted); }

.field-error {
    color: #f87171;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    min-height: 0;
}
.field-error:not(:empty) { margin-top: 6px; }

/* --- خلاصه سفارش --- */
.order-summary {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 18px;
}
.os-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-2);
}
.os-row b { color: var(--text); font-size: 13px; }
.os-color-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    vertical-align: -2px;
    margin-right: 5px;
    border: 1.5px solid var(--border-2);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
}
.os-total { border-top: 1px dashed var(--border-2); margin-top: 6px; padding-top: 11px; }
.os-total span { color: var(--text); font-weight: 700; }
.os-total b { color: var(--gold); font-size: 16px; font-weight: 900; }

/* --- دکمه ثبت --- */
.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #06130d;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 900;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(74, 222, 128, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(74, 222, 128, 0.35); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.privacy-note { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 12px; }

/* --- یادداشت "نیازی به پرداخت نیست" (قبل از دکمه ثبت) --- */
.no-pay-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(74, 222, 128, 0.07);
    border: 1px solid rgba(74, 222, 128, 0.30);
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 16px;
}

.npn-icon {
    font-size: 18px;
    line-height: 1.5;
    flex-shrink: 0;
}

.npn-body strong {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 3px;
}

.npn-body p {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.8;
}

/* --- راهنمای تصویری انواع قاب --- */
.guide-figure {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 26px;
}

.guide-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.guide-figure figcaption {
    font-size: 12px;
    color: var(--text-2);
    padding: 12px 6px 4px;
    line-height: 1.9;
    text-align: center;
}

.guide-figure figcaption strong { color: var(--text); }

.form-message {
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
}
.form-message.success {
    background: rgba(74, 222, 128, 0.10);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: var(--accent);
}
.form-message.error {
    background: rgba(248, 113, 113, 0.10);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #f87171;
}

/* ===== انواع قاب ===== */
.types-section, .faq-section { max-width: 760px; margin: 0 auto; padding: 30px 18px 10px; }

.types-title { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 22px; }

.types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.type-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    transition: 0.2s;
}
.type-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.type-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.type-price { color: var(--gold); font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.type-desc { color: var(--muted); font-size: 12px; }

/* ===== محتوای سئو ===== */
.seo-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 34px 18px 6px;
    color: var(--text-2);
    font-size: 14px;
}
.seo-content h2 { font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.seo-content p { margin-bottom: 14px; }
.seo-content strong { color: var(--text); }

/* ===== سوالات متداول ===== */
.faq-section { padding-bottom: 40px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-list details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 15px 18px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text);
    user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; float: left; color: var(--accent); font-weight: 900; font-size: 16px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding: 0 18px 15px; font-size: 12.5px; color: var(--text-2); }

/* ===== فوتر ===== */
.frame-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 18px 30px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}
.frame-footer a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.frame-footer a:hover { color: var(--accent); }

/* ===== ریسپانسیو ===== */
@media (max-width: 640px) {
    .hero { padding: 40px 14px 26px; }
    .order-card { padding: 22px 16px; border-radius: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .types-grid { grid-template-columns: 1fr; }
    .topbar { padding: 9px 12px; }
    .brand span { font-size: 13.5px; }
}
