/* Order Page Styles */

.order-section {
    min-height: 100vh;
    padding: 120px 0 4rem;
    background: var(--gray-light);
}

.order-header {
    text-align: center;
    margin-bottom: 3rem;
}

.order-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.order-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 50px;
    left: 50px;
    height: 2px;
    background: #E0E0E0;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: #999;
    transition: all 0.3s ease;
}

.step span {
    font-size: 0.875rem;
    color: #999;
    white-space: nowrap;
}

.step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.step.active span {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-number {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

/* Order Form */
.order-form {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.form-step h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(38, 65, 194, 0.15);
}

.product-card.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.product-card i {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.product-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 48px;
}

.btn-select {
    width: 100%;
}

.product-card.selected .btn-select {
    background: var(--primary);
    color: white;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(38, 65, 194, 0.15);
}

.plan-card.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.plan-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.plan-card .price {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.plan-card .period {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1.5rem;
}

.plan-card.plus-badge::after {
    content: 'پلاس';
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Billing Options */
.billing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.radio-card {
    display: block;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-content {
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.radio-card:hover .radio-card-content {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(38, 65, 194, 0.15);
}

.radio-card input[type="radio"]:checked + .radio-card-content {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.radio-card-content i {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.radio-card-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.radio-card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.radio-card-content .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    display: block;
}

.discount-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Gandom', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38, 65, 194, 0.1);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.payment-card {
    display: block;
    cursor: pointer;
}

.payment-card.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.payment-card input[type="radio"] {
    display: none;
}

.payment-card-content {
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.payment-card:hover:not(.disabled) .payment-card-content {
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(38, 65, 194, 0.15);
}

.payment-card input[type="radio"]:checked + .payment-card-content {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.payment-card-content i {
    width: 48px;
    height: 48px;
    display: block;
    margin-bottom: 1rem;
    color: var(--primary);
}

.payment-card-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.disabled-text {
    color: #999;
    font-style: italic;
}

/* Bank Info */
.bank-info {
    margin-top: 1.5rem;
    text-align: right;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--gray-light);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.info-row .label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
}

.info-row .value {
    flex: 1;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-align: left;
    margin: 0 1rem;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.copy-btn i {
    width: 16px;
    height: 16px;
}

/* Order Summary */
.order-summary {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.order-summary h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E0E0E0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--primary);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-prev,
.btn-next,
.btn-submit {
    min-width: 150px;
}

/* Success Page */
.success-page {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.success-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.success-icon-large svg {
    color: white;
}

.success-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.success-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.order-id-box {
    background: var(--primary-bg);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.order-id-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.order-id-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.copy-order-id {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Gandom', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.copy-order-id:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.copy-order-id i {
    width: 18px;
    height: 18px;
}

.payment-instructions {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: right;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.payment-instructions h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-instructions h2 i {
    width: 24px;
    height: 24px;
}

.payment-amount-box {
    background: linear-gradient(135deg, var(--primary), #5568d3);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.amount-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.bank-details {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bank-details h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.bank-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.bank-info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 120px;
}

.info-value {
    flex: 1;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-align: left;
    margin: 0 1rem;
}

.btn-copy-small {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy-small:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.btn-copy-small i {
    width: 16px;
    height: 16px;
}

.important-note {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.important-note i {
    width: 24px;
    height: 24px;
    color: #856404;
    flex-shrink: 0;
}

.important-note div {
    color: #856404;
    line-height: 1.6;
}

.important-note strong {
    color: #664d03;
}

.order-summary-final {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: right;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.order-summary-final h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 8px;
}

.summary-item .label {
    font-weight: 600;
    color: var(--text-secondary);
}

.summary-item .value {
    color: var(--text-primary);
    font-weight: 500;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.success-actions .btn i {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .order-section {
        padding: 100px 0 2rem;
    }

    .order-header h1 {
        font-size: 1.75rem;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .progress-steps::before {
        display: none;
    }

    .step {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .order-form {
        padding: 1.5rem;
    }

    .products-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }

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

    .billing-options,
    .payment-methods {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
    
    /* Success page mobile */
    .success-title {
        font-size: 1.75rem;
    }
    
    .success-subtitle {
        font-size: 1rem;
    }
    
    .order-id-value {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .amount-value {
        font-size: 1.75rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .bank-info-row {
        flex-wrap: wrap;
    }
    
    .info-value {
        flex: 1 1 100%;
        text-align: right;
        margin: 0.5rem 0;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
    }
}

/* Phone numbers should be RTL */
a[href^="tel:"] {
    direction: rtl;
    unicode-bidi: embed;
}
