@font-face {
    font-family: 'IranSans';
    src: url('/fonts/iransanswebfanum.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'IranSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    direction: rtl;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3748;
    text-align: center;
    flex: 1;
}

.track-order-btn {
    background: #e53e3e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.track-order-btn:hover {
    background: #c53030;
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    margin-top: 100px;
    padding-bottom: 50px;
}

/* Static Image Styles */
.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 50px;
    overflow: hidden;
}

.static-slide {
    width: 100%;
    height: 100%;
}

.static-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form Container */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 1rem;
    color: #718096;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #4a5568;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

select {
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #3182ce;
}

.submit-btn {
    background: #48bb78;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.success-message {
    background: #48bb78;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.error-message {
    background: #e53e3e;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 5px;
    font-size: 0.9rem;
}

.success-message-inline {
    background: #48bb78;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 5px;
    font-size: 0.85rem;
}

.loading-message {
    background: #3182ce;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 5px;
    font-size: 0.85rem;
}

.input-validation {
    position: relative;
}

.input-validation input:valid.available {
    border-color: #48bb78;
}

.input-validation input:invalid,
.input-validation input.unavailable {
    border-color: #e53e3e;
}

/* Footer Styles */
.footer {
    background: #2d3748;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-phone {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.footer-address {
    font-size: 0.9rem;
    color: #a0aec0;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #a0aec0;
}

.footer-phone a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-phone a:hover {
    color: #48bb78;
    text-decoration: underline;
}

/* Package Selection Styles */
.package-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.package-item {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.package-item:hover {
    border-color: #3182ce;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.1);
}

.package-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #3182ce;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.package-item input[type="radio"]:checked + .package-label {
    border-color: #3182ce;
    background: #f7fafc;
}

.package-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
}

.package-content {
    flex: 1;
}

.package-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}

.package-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

.package-price {
    font-size: 1rem;
    font-weight: 600;
    color: #48bb78;
    margin: 0;
    white-space: nowrap;
}

.package-description {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.5;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 10px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .track-order-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .form-container {
        margin: 0 10px 20px;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .slider-container {
        height: 300px;
        margin-top: 20px;
    }

    .package-label {
        padding: 12px;
        gap: 12px;
    }

    .package-header {
        gap: 10px;
    }

    .package-title {
        font-size: 1rem;
    }

    .package-price {
        font-size: 0.9rem;
    }

    .package-description {
        font-size: 0.8rem;
    }
}
