/* ==================== CHECKOUT PAGE STYLES ==================== */
body {
    background: var(--background-light);
    padding-top: 80px;
}

.checkout-page {
    min-height: calc(100vh - 80px);
    padding: 40px 0;
}

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

/* Checkout Header */
.checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 12px;
}

.checkout-subtitle {
    color: var(--text-light);
    font-size: 16px;
}

/* Checkout Content */
.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

/* Checkout Form */
.checkout-form {
    background: var(--background-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.form-section {
    margin-bottom: 32px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-label-required::after {
    content: '*';
    color: var(--error-color);
    margin-left: 4px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white !important;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    margin-top: 24px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: 100px;
    background: var(--background-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.order-items {
    margin-bottom: 24px;
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--background-light);
    border-radius: 8px;
    margin-bottom: 12px;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.order-item-quantity {
    font-size: 13px;
    color: var(--text-light);
}

.order-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.summary-label {
    color: var(--text-light);
    font-weight: 500;
}

.summary-value {
    font-weight: 700;
    color: var(--text-color);
}

.summary-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.summary-total .summary-label {
    font-size: 18px;
    color: var(--text-color);
}

.summary-total .summary-value {
    font-size: 28px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 80px 40px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.success-message h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.back-home-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition-base);
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
    color: white !important;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .checkout-content {
        grid-template-columns: 1fr 350px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .checkout-page {
        padding: 24px 0;
    }
    
    .checkout-container {
        padding: 0 20px;
    }
    
    .checkout-title {
        font-size: 24px;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .checkout-form {
        padding: 24px;
    }
    
    .order-summary {
        position: static;
        padding: 24px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .submit-btn {
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .checkout-container {
        padding: 0 16px;
    }
    
    .checkout-form {
        padding: 20px;
    }
    
    .order-summary {
        padding: 20px;
    }
    
    .form-input,
    .form-textarea {
        padding: 12px;
    }
}