/* ========================================
   Checkout Wizard Modal Styles
   ======================================== */

.checkout-wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.checkout-wizard-container {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpCheckout 0.3s ease;
}

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

/* Checkout Header */
.checkout-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.checkout-back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.checkout-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.checkout-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

/* Checkout Content */
.checkout-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px;
}

/* Checkout Sections */
.checkout-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.checkout-section:hover {
    border-color: #e9ecef;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.edit-btn {
    background: rgba(102, 126, 234, 0.1);
    border: none;
    color: #667eea;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.edit-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.address-display,
.receiver-display,
.note-display {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.address-display p,
.receiver-display p,
.note-display p {
    margin: 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
}

.address-form,
.receiver-form,
.note-form {
    animation: fadeInCheckout 0.3s ease;
}

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

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* Payment Methods */
.payment-methods {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.payment-option {
    cursor: pointer;
    flex: 1;
    max-width: 120px;
}

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

.payment-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.payment-card i {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 6px;
    display: block;
}

.payment-card span {
    display: block;
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    line-height: 1.2;
}

.payment-option input:checked + .payment-card {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.payment-option input:checked + .payment-card i {
    color: #667eea;
}

.payment-option:hover .payment-card {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Checkout Footer */
.checkout-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

/* Lens Configuration Button */
#add-lens-button:hover {
    background: #45a049 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

#add-lens-button:active {
    transform: translateY(0);
}

.total-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
}

.price-label {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.total-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.checkout-next-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.checkout-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.checkout-next-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkout-wizard-overlay {
        padding: 0;
        align-items: flex-start;
    }
    
    .checkout-wizard-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .checkout-header {
        border-radius: 0;
        padding: 15px;
    }
    
    .checkout-title {
        font-size: 18px;
    }
    
    .checkout-content {
        padding: 20px 15px;
    }
    
    .checkout-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .checkout-footer {
        padding: 15px;
        border-radius: 0;
    }
    
    .payment-methods {
        gap: 8px;
    }
    
    .payment-option {
        max-width: 100px;
    }
    
    .payment-card {
        padding: 10px 6px;
    }
    
    .payment-card i {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .payment-card span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .checkout-back-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .checkout-title {
        font-size: 16px;
    }
    
    .total-price {
        font-size: 20px;
    }
    
    .payment-methods {
        gap: 6px;
    }
    
    .payment-option {
        max-width: 90px;
    }
    
    .payment-card {
        padding: 8px 4px;
    }
    
    .payment-card i {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .payment-card span {
        font-size: 10px;
    }
}
