/* Modern Checkout Form Styles */

.modern-checkout-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 45px;
    margin-bottom: 40px;
    border: 1px solid rgba(0,0,0,0.03);
    animation: fadeInSlide 0.6s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkout-header {
    margin-bottom: 35px;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 25px;
}

.checkout-header h4 {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.progress-indicator {
    display: inline-block;
    padding: 8px 16px;
    background: #eef2ff;
    color: #4a6cf7;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 40px 0 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section-title i {
    color: #4a6cf7;
    background: #f0f4ff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
}

.input-group-modern {
    position: relative;
    margin-bottom: 28px;
}

.input-group-modern label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    color: #999;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 2;
}

.input-wrapper input, 
.input-wrapper select, 
.input-wrapper textarea {
    width: 100%;
    height: 54px;
    padding: 12px 20px 12px 50px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    font-size: 16px;
    color: #1a202c;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.input-wrapper input:focus, 
.input-wrapper select:focus {
    border-color: #4a6cf7;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 5px rgba(74, 108, 247, 0.15);
}

.input-wrapper input:focus + i, 
.input-wrapper select:focus + i {
    color: #4a6cf7;
}

.theme-btn-modern {
    background: #4a6cf7;
    color: #fff;
    padding: 18px 35px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    margin-top: 25px;
}

.theme-btn-modern:hover:not(:disabled) {
    background: #3654d1;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 108, 247, 0.25);
}

.theme-btn-modern:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.shipping-preview {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease;
}

.shipping-preview:hover {
    border-color: #4a6cf7 !important;
    background: #fff !important;
}

/* Fix for nice-select with modern theme */
.input-wrapper .nice-select {
    padding-left: 50px !important; /* Force space for icon */
    height: 54px !important;
    line-height: 50px !important;
    border: 2px solid #edf2f7 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    width: 100% !important;
    color: #1a202c !important;
    font-size: 16px !important;
}

.input-wrapper .nice-select .current {
    color: #1a202c !important;
}

.input-wrapper .nice-select:after {
    right: 20px !important;
    border-bottom: 2px solid #999 !important;
    border-right: 2px solid #999 !important;
}

.input-wrapper .nice-select .list {
    width: 100% !important;
    border-radius: 12px !important;
    margin-top: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    border: 1px solid #edf2f7 !important;
    background: #fff !important; /* Force white background */
    z-index: 99 !important;
}

.input-wrapper .nice-select .option {
    color: #444 !important; /* Dark text */
    padding-left: 20px !important;
    padding-right: 20px !important;
    line-height: 45px !important;
    min-height: 45px !important;
    transition: all 0.2s ease !important;
}

.input-wrapper .nice-select .option:hover, 
.input-wrapper .nice-select .option.focus, 
.input-wrapper .nice-select .option.selected.focus {
    background-color: #f0f4ff !important;
    color: #4a6cf7 !important;
}

/* Ensure the absolute icon stays above nice-select but doesn't block clicks */
.input-wrapper i {
    z-index: 5 !important;
    pointer-events: none; /* Let clicks pass through to nice-select */
}
