/* Checkout Page Styles */

.checkout-section {
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #f8fafb 0%, #e8f5e9 100%);
    min-height: 100vh;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Progress Steps */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

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

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.progress-step.completed .step-circle {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.step-label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
}

.progress-step.active .step-label {
    color: #10b981;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #d1d5db;
    margin: 0 10px;
    position: relative;
    top: -15px;
}

.progress-step.completed ~ .progress-line {
    background: #10b981;
}

/* Checkout Content */
.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.checkout-forms {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.checkout-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 30px;
}

/* Service Selection */
.selected-service {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.selected-service h3 {
    font-size: 20px;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 10px;
}

.selected-service p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
}

.form-input.error {
    border-color: #ef4444;
}

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

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 30px;
}

.payment-method {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

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

.payment-method input[type="radio"]:checked + label {
    color: #10b981;
}

.payment-method input[type="radio"]:checked ~ label {
    color: #10b981;
}

.payment-method.selected {
    border-color: #10b981;
    background: #f0fdf4;
}

.payment-method label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.payment-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.payment-icon svg {
    width: 28px;
    height: 28px;
    color: #6b7280;
}

.payment-icon.mtn-icon {
    background: #ffcb05;
    color: #000;
    font-weight: 700;
    font-size: 14px;
}

.payment-icon.airtel-icon {
    background: #ed1c24;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.payment-details {
    flex: 1;
}

.payment-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.payment-desc {
    display: block;
    font-size: 13px;
    color: #6b7280;
}

/* Payment Forms */
.payment-form {
    background: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    margin-top: 20px;
}

.payment-form h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.payment-note {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.mobile-instructions {
    background: #fff;
    padding: 16px;
    border-radius: 6px;
    margin-top: 20px;
}

.mobile-instructions p {
    font-weight: 600;
    margin-bottom: 10px;
}

.mobile-instructions ol {
    margin-left: 20px;
}

.mobile-instructions li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b5563;
}

/* Step Actions */
.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.step-actions .btn {
    flex: 1;
    text-align: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Confirmation */
.confirmation-content {
    text-align: center;
    padding: 20px;
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-icon.success {
    background: #d1fae5;
}

.confirmation-icon svg {
    width: 60px;
    height: 60px;
    color: #10b981;
}

.confirmation-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.confirmation-message {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 40px;
}

.order-details {
    background: #f9fafb;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
}

.order-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.info-label {
    font-weight: 600;
    color: #6b7280;
}

.info-value {
    color: #1f2937;
}

.next-steps {
    text-align: left;
    background: #eff6ff;
    padding: 24px;
    border-radius: 8px;
}

.next-steps h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.next-steps ul {
    margin-left: 20px;
}

.next-steps li {
    margin-bottom: 10px;
    color: #4b5563;
    line-height: 1.6;
}

/* Loading Overlay */
#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loading-overlay p {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* Order Summary */
.order-summary {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-label {
    font-size: 14px;
    color: #6b7280;
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0;
}

.summary-total {
    margin-top: 15px;
}

.summary-total .summary-label {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.summary-total .summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
}

/* Security Badges */
.security-badges {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.badge {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6b7280;
}

.badge svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #10b981;
}

/* Help Section */
.help-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.help-section p {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 10px;
}

.help-section a {
    display: block;
    font-size: 14px;
    color: #10b981;
    text-decoration: none;
    margin-bottom: 6px;
}

.help-section a:hover {
    text-decoration: underline;
}

/* Footer Minimal */
.footer-minimal {
    background: #1f2937;
    padding: 30px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        margin-top: 30px;
    }

    .checkout-progress {
        overflow-x: auto;
    }

    .progress-step {
        min-width: 80px;
    }

    .step-label {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .checkout-section {
        padding: 100px 15px 40px;
    }

    .checkout-forms {
        padding: 25px 20px;
    }

    .step-title {
        font-size: 22px;
    }

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

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-label {
        display: none;
    }

    .progress-line {
        margin: 0 5px;
    }

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

    .confirmation-title {
        font-size: 24px;
    }
}

/* Error Messages */
.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

.form-group.has-error .form-input {
    border-color: #ef4444;
}

/* Success Alert */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.alert.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert.show {
    display: block;
}
