/* ============================================
   تنظیمات عمومی
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   کادر اصلی فرم
   ============================================ */
.form-wrapper {
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   هدر فرم
   ============================================ */
.form-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px dashed #e2e8f0;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 35px;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.form-header h1 {
    color: #1a202c;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
}

.form-header p {
    color: #718096;
    font-size: 16px;
}

.year-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

/* ============================================
   بخش‌های فرم
   ============================================ */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.section-title i {
    color: #667eea;
    font-size: 20px;
}

/* ============================================
   شبکه فرم
   ============================================ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================
   گروه‌های فرم
   ============================================ */
.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.form-group label i {
    margin-left: 6px;
    color: #667eea;
}

.required {
    color: #e53e3e;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #2d3748;
    direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #a0aec0;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ============================================
   استایل سلکت (انتخاب رشته)
   ============================================ */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 40px;
    cursor: pointer;
}

/* ============================================
   پیام خطا
   ============================================ */
.error-message {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

/* ============================================
   دکمه‌ها
   ============================================ */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.btn i {
    font-size: 18px;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-reset {
    background: #edf2f7;
    color: #4a5568;
}

.btn-reset:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   پیام وضعیت
   ============================================ */
.status-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.status-message.show {
    display: block;
    animation: slideUp 0.4s ease;
}

.status-message.success {
    background: #f0fff4;
    color: #22543d;
    border: 2px solid #48bb78;
}

.status-message.error {
    background: #fff5f5;
    color: #9b2c2c;
    border: 2px solid #fc8181;
}

.status-message.loading {
    background: #ebf8ff;
    color: #2a69ac;
    border: 2px solid #63b3ed;
}

/* ============================================
   ریسپانسیو
   ============================================ */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .form-wrapper {
        padding: 25px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-header h1 {
        font-size: 22px;
    }

    .form-section {
        padding: 15px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .form-wrapper {
        padding: 20px 15px;
        border-radius: 20px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .form-header h1 {
        font-size: 20px;
    }
}

/* ============================================
   اسکرول بار سفارشی
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
/* اضافه کردن به style.css */

.success-message {
    text-align: center;
    padding: 20px;
}

.success-message h3 {
    color: #22543d;
    font-size: 24px;
    margin-bottom: 20px;
}

.tracking-code-box {
    background: #f7fafc;
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
}

.tracking-code-box p {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 10px;
}

.tracking-code-display {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    margin: 15px 0;
    direction: ltr;
    font-family: monospace;
}

.btn-copy {
    background: #edf2f7;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    transition: 0.3s;
}

.btn-copy:hover {
    background: #e2e8f0;
}

.btn-track {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-track:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.sms-info {
    font-size: 13px;
    color: #718096;
    margin-top: 15px;
}

.error-list {
    text-align: right;
    padding: 10px;
}

.error-list p {
    color: #e53e3e;
    margin: 5px 0;
}
