@font-face {
    font-family: 'Vazirmatn';
    src: url('../Vazirmatn-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    background: #1a1a1a url('https://javdanfard.ir/sabt/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* افکت شیشه‌ای روی کل کادر */
.glass-wrapper {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    perspective: 1000px;
}

.glass-card {
    background: rgba(30, 30, 40, 0.35);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 2rem 2rem 2.2rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: fadeSlideUp 0.6s ease-out;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* فرمت و تایپوگرافی */
.form-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #FFF 0%, #FFE6A3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.form-subtitle {
    text-align: center;
    color: rgba(255, 245, 200, 0.9);
    font-weight: 500;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(255, 200, 100, 0.5);
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 8px;
}

/* استایل کادرهای ورودی */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #FFF9E8;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.input-group input, .gender-group {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(20, 20, 30, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: white;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #FFD966;
    background: rgba(20, 20, 30, 0.7);
    box-shadow: 0 0 0 4px rgba(255, 217, 102, 0.2);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* گزینه‌های جنسیت */
.gender-group {
    display: flex;
    gap: 1rem;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 1.5rem;
    padding: 0.7rem 1.2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFF9E8;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.radio-label input {
    width: 18px;
    height: 18px;
    accent-color: #FFD966;
    margin: 0;
    padding: 0;
}

/* دکمه ثبت نهایی (زرد با انیمیشن) */
.submit-btn {
    width: 100%;
    background: linear-gradient(105deg, #FFD966 0%, #FFC107 100%);
    color: #2C2C2C;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    margin-top: 0.8rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.8px;
}

.submit-btn:hover {
    transform: scale(1.02);
    background: linear-gradient(105deg, #FFE082 0%, #FFCA28 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* پیام‌های خطا و موفقیت (قدیمی برای فرم فعلی) */
.message-box {
    margin-top: 1.5rem;
    padding: 0.8rem;
    border-radius: 1.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
}

.message-box.success {
    background: rgba(0, 200, 83, 0.2);
    color: #CCFFCC;
    border-right: 3px solid #4CAF50;
}

.message-box.error {
    background: rgba(255, 50, 50, 0.2);
    color: #FFB3B3;
    border-right: 3px solid #F44336;
}

/* استایل کادر پیام تشکر (حالت موفقیت) */
.success-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 0.5rem;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #FFF 0%, #FFE6A3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.event-details {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.event-details p {
    color: #FFF9E8;
    font-weight: 500;
    margin: 0.5rem 0;
    font-size: 1rem;
}

.tracking-code-box {
    background: rgba(255, 217, 102, 0.2);
    border-radius: 1rem;
    padding: 0.8rem;
    text-align: center;
    margin: 1rem 0;
    border: 1px solid rgba(255, 217, 102, 0.5);
}

.tracking-label {
    font-weight: 500;
    color: #FFE6A3;
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.tracking-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFD966;
    letter-spacing: 2px;
}

.save-code-message {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 245, 200, 0.8);
    margin-top: 0.8rem;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 550px) {
    .glass-card {
        padding: 1.5rem;
    }
    .form-title {
        font-size: 1.6rem;
    }
    .gender-group {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    .tracking-number {
        font-size: 1.4rem;
    }
}