/* صفحه درخواست نصب */

.request-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.1) 0%, 
        rgba(9, 132, 227, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.request-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, 
        rgba(0, 184, 148, 0.2) 0%, 
        transparent 70%);
    filter: blur(80px);
    opacity: 0.5;
}

.request-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.request-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.request-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.request-intro {
    margin-bottom: 3rem;
    text-align: right;
}

.request-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.request-intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-width: 250px;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    text-align: right;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: right;
}

.request-wave {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 120px;
    color: var(--bg-primary);
}

.request-wave svg {
    width: 100%;
    height: 100%;
}

/* تایم لاین */
.timeline-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.request-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.timeline-track {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, 
        var(--primary-color), 
        var(--secondary-color));
    opacity: 0.2;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 30px;
    height: 30px;
    background: var(--bg-primary);
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.dot-inner {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
}

.timeline-content {
    flex: 1;
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(223, 230, 233, 0.5);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.timeline-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0, 184, 148, 0.1);
    line-height: 1;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.1), 
        rgba(9, 132, 227, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to left, 
        var(--primary-color), 
        var(--secondary-color));
    border-radius: 1.5px;
}

.timeline-description p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-description ul {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.timeline-description li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.timeline-description li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.duration-label {
    font-weight: 600;
    color: var(--text-primary);
}

.duration-value {
    color: var(--primary-color);
    font-weight: 500;
}

/* فرم درخواست */
.request-form-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.03) 0%, 
        rgba(9, 132, 227, 0.03) 100%);
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.form-header {
    padding: 3rem 3rem 2rem;
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.05), 
        rgba(9, 132, 227, 0.05));
    border-bottom: 1px solid rgba(223, 230, 233, 0.5);
}

.form-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-progress {
    margin-top: 2rem;
}

.progress-bar {
    height: 6px;
    background: rgba(223, 230, 233, 0.5);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    width: 33.33%;
    background: linear-gradient(to left, 
        var(--primary-color), 
        var(--secondary-color));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.progress-steps .step {
    font-size: 0.9rem;
    color: var(--text-light);
    position: relative;
    padding-top: 2rem;
}

.progress-steps .step::before {
    content: '';
    position: absolute;
    top: -12px;
    right: 50%;
    transform: translateX(50%);
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.progress-steps .step.active {
    color: var(--primary-color);
    font-weight: 500;
}

.progress-steps .step.active::before {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.multi-step-form {
    padding: 0;
}

.form-step {
    display: none;
    padding: 3rem;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.step-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(223, 230, 233, 0.5);
}

.step-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    font-family: 'IRANSans', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23636e72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.5rem center;
    background-size: 1rem;
    padding-left: 2rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-line {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to left, 
        var(--primary-color), 
        var(--secondary-color));
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line,
.form-group select:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.radio input {
    width: auto;
    margin: 0;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.checkbox input {
    width: auto;
    margin-top: 0.25rem;
}

.terms-link,
.privacy-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover,
.privacy-link:hover {
    text-decoration: underline;
}

.summary-box {
    background: rgba(0, 184, 148, 0.05);
    border: 1px solid rgba(0, 184, 148, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}

.summary-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 184, 148, 0.2);
}

.summary-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.summary-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(223, 230, 233, 0.5);
    margin-top: 2rem;
}

.form-actions button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.next-step svg {
    transform: rotate(180deg);
}

.prev-step svg {
    transform: rotate(0);
}

.submit-btn {
    position: relative;
    min-width: 150px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.success-message {
    text-align: center;
    padding: 4rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.success-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.success-details {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.success-details p {
    margin-bottom: 0.5rem;
}

#trackingNumber {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.print-btn,
.new-request-btn {
    min-width: 180px;
}

.print-btn svg {
    margin-left: 0.5rem;
}

/* سوالات متداول */
.faq-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(223, 230, 233, 0.5);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 184, 148, 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-right: 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* تماس فوری */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-actions .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
}

.cta-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-actions .btn-primary svg {
    fill: var(--primary-color);
    margin-left: 0.5rem;
}

.cta-actions .btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-actions .btn-outline:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-actions .btn-outline svg {
    fill: white;
    margin-left: 0.5rem;
}

.whatsapp-btn:hover svg {
    fill: var(--primary-color);
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* رسپانسیو */
@media (max-width: 1200px) {
    .request-title {
        font-size: 3rem;
    }
    
    .hero-steps {
        gap: 1.5rem;
    }
    
    .step-item {
        min-width: 220px;
    }
}

@media (max-width: 992px) {
    .request-hero {
        padding: 120px 0 60px;
    }
    
    .request-title {
        font-size: 2.5rem;
    }
    
    .request-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step-item {
        width: 100%;
        max-width: 400px;
    }
    
    .timeline-track {
        right: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        gap: 2rem;
    }
    
    .timeline-content {
        margin-right: 60px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .request-title {
        font-size: 2rem;
    }
    
    .request-subtitle {
        font-size: 1.1rem;
    }
    
    .form-header,
    .form-step {
        padding: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .request-hero {
        padding: 100px 0 40px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        gap: 1.5rem;
    }
    
    .timeline-content {
        margin-right: 0;
        width: 100%;
    }
    
    .timeline-track {
        display: none;
    }
    
    .form-header,
    .form-step {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions button {
        width: 100%;
    }
}