/* Checkout Page Styles */
.checkout-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

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

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
}

/* Order Summary */
.order-summary {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.order-summary h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.order-details {
    margin-top: 1rem;
}

.selected-plan {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.selected-plan h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #eaeaea;
}

.order-total {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #eaeaea;
    text-align: right;
}

.order-total h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Checkout Form */
.checkout-form {
    padding: 1rem 0;
}

.checkout-form h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group.half {
    width: 50%;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

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

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.payment-option {
    display: flex;
    align-items: center;
}

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

.payment-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 120px;
    text-align: center;
}

.payment-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.payment-option input[type="radio"]:checked + .payment-label {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.05);
}

/* Checkout Actions */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
}

/* Payment Processing */
.payment-processing,
.payment-success,
.payment-failed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-processing-content,
.payment-success-content,
.payment-failed-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    padding: 30px;
    position: relative;
}

.payment-qr {
    text-align: center;
    margin-bottom: 30px;
}

.qr-container {
    margin: 20px auto;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    width: fit-content;
    max-width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.qr-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.payment-instructions {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 0.9rem;
}

.payment-status {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.payment-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.payment-spinner {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.success-icon,
.failed-icon {
    text-align: center;
    margin-bottom: 20px;
    font-size: 48px;
}

.success-icon {
    color: var(--success-color);
}

.failed-icon {
    color: #f44336;
}

.order-details {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.success-actions,
.failed-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 576px) {
    .payment-processing-content,
    .payment-success-content {
        padding: 1.5rem;
        margin: 1rem;
        width: auto;
    }
    
    .payment-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-label {
        width: 100%;
        max-width: 200px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group.half {
        width: 100%;
    }
}

/* Updated Footer Design */
/* Removed custom footer styling to use main.css styles */

.payment-steps {
    text-align: left;
    margin: 20px auto;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    max-width: 80%;
    border-left: 4px solid var(--primary-color);
}

.payment-steps li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.payment-steps li:last-child {
    margin-bottom: 0;
    font-weight: 500;
} 