/**
 * Order Page Specific Styles
 * Extends the existing pricing page styles for order functionality
 */

/* Order Form Styles */
.order-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: #3b82f6;
    color: white;
}

.progress-step.completed {
    background-color: #10b981;
    color: white;
}

.progress-connector {
    width: 2rem;
    height: 2px;
    background-color: #e5e7eb;
    transition: background-color 0.3s ease;
}

.progress-connector.active {
    background-color: #3b82f6;
}

/* Plan Selection Styles */
.plan-option {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fff;
}

.plan-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.plan-option.selected {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #f8faff;
}

.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-option .plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.plan-option .plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.plan-option .plan-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.plan-option .plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-option .plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.plan-option .plan-features li svg {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10;
}

/* Payment Method Styles */
.payment-method {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: #fff;
}

.payment-method:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.payment-method.selected {
    border-color: #3b82f6 !important;
    background-color: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.payment-method-name {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.payment-method-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Order Summary Styles */
.order-summary {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
}

.order-summary h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    color: #374151;
}

.order-summary-item:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.order-summary-total {
    font-size: 1.125rem;
    font-weight: 600;
    border-top: 2px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.complete-order-btn {
    width: 100%;
    background: #3b82f6;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.complete-order-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.complete-order-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Form Input Styles */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-help {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Status Messages */
.status-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
}

.status-message svg {
    flex-shrink: 0;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

.status-message.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.status-message.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.status-message.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.status-message.info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trust-badge {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trust-badge-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trust-badge h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.trust-badge p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Bank Transfer Details */
.bank-details {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.bank-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.bank-detail-item {
    padding: 0.75rem 0;
}

.bank-detail-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.bank-detail-value {
    color: #1f2937;
    font-family: monospace;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-form {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .plan-option {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .plan-option .plan-price {
        font-size: 1.5rem;
    }
    
    .order-summary {
        position: static;
        margin-top: 2rem;
    }
    
    .progress-indicator {
        flex-direction: column;
        align-items: stretch;
    }
    
    .progress-step {
        margin: 0.25rem 0;
        justify-content: center;
    }
    
    .progress-connector {
        display: none;
    }
    
    .trust-badges {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bank-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
