/* Checkout page specific styles */

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: Srgba(249, 251, 253, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(52, 179, 168, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #B8FFF9;
}

/* Checkout Header */
.checkout-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(184, 255, 249, 0.1) 0%, rgba(255, 217, 232, 0.1) 100%);
    text-align: center;
}

.checkout-header-content h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.checkout-header-content p {
    font-size: 20px;
    color: #666;
    font-weight: 300;
}

/* Checkout Section */
.checkout-section {
    padding: 60px 0;
    background: #F9FBFD;
}

.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
}

/* Checkout Form */
.checkout-form-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-header p {
    color: #666;
    font-weight: 300;
}

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

.form-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(184, 255, 249, 0.3);
}

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

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

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

.form-group input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #B8FFF9;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.9) 100%);
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 15px rgba(184, 255, 249, 0.2);
}

.form-group input:focus {
    border-color: #A0F0E4;
    box-shadow: 0 0 0 4px rgba(160, 240, 228, 0.3), 0 8px 25px rgba(184, 255, 249, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 255, 0.98) 100%);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #666;
    font-weight: 400;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.terms-link {
    color: #B8FFF9;
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #B8FFF9 0%, #A0F0E4 100%);
    border: none;
    padding: 18px 32px;
    border-radius: 12px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(184, 255, 249, 0.3);
    position: relative;
    overflow: hidden;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(184, 255, 249, 0.4);
}

.checkout-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(51, 51, 51, 0.3);
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Order Summary */
.order-summary {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.summary-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.summary-content {
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(184, 255, 249, 0.2);
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-name h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.item-name p {
    font-size: 14px;
    color: #666;
    font-weight: 300;
}

.item-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: right;
}

.summary-total {
    border-top: 2px solid rgba(184, 255, 249, 0.3);
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.total-row.total {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(184, 255, 249, 0.3);
}

.security-badges {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.security-icon {
    font-size: 16px;
}

/* Form Validation */
.form-group.error input {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-group.error label {
    color: #ff6b6b;
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Success State */
.checkout-success {
    text-align: center;
    padding: 60px 40px;
}

.checkout-success h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.checkout-success p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #B8FFF9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .order-summary {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .checkout-form-container,
    .order-summary {
        padding: 30px 20px;
    }
    
    .checkout-header-content h1 {
        font-size: 36px;
    }
    
    .checkout-header-content p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .checkout-form-container,
    .order-summary {
        padding: 20px 15px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .checkout-btn {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .summary-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .item-price {
        text-align: left;
    }
}

/* Loading States */
.checkout-form.loading {
    pointer-events: none;
    opacity: 0.7;
}

.checkout-form.loading .checkout-btn {
    background: linear-gradient(135deg, #ccc 0%, #ddd 100%);
    cursor: not-allowed;
}

/* Card Number Formatting */
#cardNumber {
    letter-spacing: 2px;
}

#expiryDate,
#cvv {
    text-align: center;
}

