﻿@font-face {
    font-family: 'peyda';
    src: url('../font/peyda-black[@mimvid].ttf') format('truetype');
}
/* --- تنظیمات کلی و متغیرها --- */
:root {
    --primary-color: #eeb82e; /* رنگ طلایی برند */
    --primary-hover: #d4a017;
    --primary-gradient: linear-gradient(135deg, #eeb82e, #b8860b);
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fcfcfc;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: peyda;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
 }

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

/* --- هدر --- */
header {
    text-align: center;
    margin: 40px 0 30px;
}

    header p {
        color: var(--text-light);
        font-size: 0.95rem;
    }

/* --- استایل کارت اصلی --- */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

/* --- فرم و ورودی‌ها --- */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.col {
    flex: 1;
    min-width: 250px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

    label span {
        color: #e74c3c;
    }

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
    background: #fff;
}

    input:focus, select:focus, textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(238, 184, 46, 0.2);
    }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 15px;
}

    .checkbox-group input {
        width: auto;
        cursor: pointer;
    }

/* --- دکمه‌ها --- */
.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    display: block;
    margin-top: 20px;
    font-family: peyda;
}

    .btn:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(238, 184, 46, 0.3);
    }

    .btn:disabled {
        background-color: #ccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* انیمیشن دکمه تایید نهایی */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(238, 184, 46, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(238, 184, 46, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(238, 184, 46, 0);
    }
}

/* --- مدیریت مراحل فرم --- */
.step {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

    .step.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- تقویم و انتخاب زمان (طراحی جدید) --- */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    margin-top: 10px;
}

.date-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
}

    .date-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        border-color: var(--primary-color);
    }

    .date-card.selected {
        background: var(--primary-gradient);
        color: white;
        border-color: transparent;
        box-shadow: 0 8px 25px rgba(238, 184, 46, 0.4);
        transform: scale(1.05);
    }

.date-day-name {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.date-day-number {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

.date-month {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* بخش ساعت‌ها */
.time-section {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateY(20px);
}

    .time-section.visible {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px dashed #eee;
    }

.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.time-slot {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
    color: #555;
    user-select: none;
}

    .time-slot:hover {
        background: #fff;
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .time-slot.selected {
        background: var(--primary-color);
        color: white;
        box-shadow: 0 4px 10px rgba(238, 184, 46, 0.3);
        transform: scale(1.05);
    }

/* --- بخش ویدیو --- */
.video-section {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://placehold.co/900x400/553333/ffffff?text=Video+Thumbnail');
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
}

.video-overlay {
    background: rgba(0,0,0,0.4);
    position: absolute;
    inset: 0;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: var(--primary-color);
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255,255,255,0.4);
    transition: transform 0.3s;
}

    .play-btn:hover {
        transform: scale(1.1);
    }

.info-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    color: #333;
    padding: 20px;
    border-radius: 12px;
    max-width: 320px;
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .info-box {
        display: block;
    }
}

/* --- مراحل (Timeline) --- */
.steps-container {
    margin-top: 50px;
}

.steps-header {
    text-align: center;
    margin-bottom: 40px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed #ddd;
    transition: transform 0.3s;
}

    .process-step:hover {
        border-color: var(--primary-color);
        transform: translateY(-3px);
    }

.step-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.8;
    line-height: 1;
    margin-left: 20px;
    font-family: sans-serif;
}

.step-content h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.step-content p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* --- سوالات متداول --- */
.faq-section {
    margin-top: 60px;
}

.faq-item {
    border-bottom: 1px solid #eee;
    background: white;
}

    .faq-item:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .faq-item:last-child {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        border: none;
    }

.faq-question {
    width: 100%;
    text-align: right;
    padding: 20px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    transition: color 0.3s;
}

    .faq-question:hover {
        color: var(--primary-color);
        background-color: #fafafa;
    }

.faq-icon::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
    display: block;
}

.faq-item.active .faq-icon::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s;
    color: #666;
    background: #fafafa;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 15px 20px 20px;
    border-top: 1px solid #f0f0f0;
}
/* --- استایل‌های مرحله خلاصه (Step 3) --- */
.summary-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

    .summary-item:last-child {
        border-bottom: none;
    }

    .summary-item h4 {
        font-size: 1rem;
        color: var(--text-color);
        margin: 0;
        font-weight: 600;
    }

    .summary-item p {
        font-size: 1rem;
        font-weight: bold;
        color: #0b3aa9;
        margin: 0;
    }

.success-message {
    display: none; /* پیش‌فرض مخفی */
    text-align: center;
    padding: 30px;
    background: #e8f5e9; /* پس زمینه سبز روشن */
    border: 1px solid #4caf50;
    color: #4caf50;
    border-radius: var(--border-radius);
    margin-top: 30px;
    animation: fadeIn 0.8s;
}

    .success-message p {
        font-weight: bold;
        font-size: 1.2rem;
    }
