/* mail-in-sharpening.css */

/* --- 1. BASE & LAYOUT --- */
body {
    background-color: #f8f9fa;
}

/* REMOVED: The "Compact Page Headers" block was here. 
   Removing it allows base.css to control the header size 
   and apply the correct desktop scaling (2.2rem).
*/

/* --- 2. FORM SECTION CARDS (Glass Theme) --- */
.form-section-card {
    border: none !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    background: #ffffff;
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-section-card.active-step {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
    border: 1px solid rgba(13, 110, 253, 0.15) !important;
}

.section-header {
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f3f5;
}

.step-badge {
    background-color: #f1f3f5;
    color: #adb5bd;
    font-weight: 700;
}

.form-section-card.active-step .step-badge {
    background-color: #0d6efd;
    color: white;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* --- 3. INPUTS & CONTROLS --- */
.form-control, .form-select, .input-group-text {
    height: 50px !important;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding-left: 15px;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: #86b7fe;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    min-width: 45px;
}

/* Quantity Stepper mandatory styling */
.stepper-input {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* --- 4. SELECTION OPTIONS (Rates) --- */
.rate-option {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    position: relative;
}

.rate-option:hover {
    border-color: #cbd5e1;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.rate-option.selected {
    border-color: #0d6efd;
    background-color: #f0f7ff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.package-group h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

/* --- 5. ITEM TABLE --- */
#blade-table-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.blade-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f5;
}

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

/* --- 6. UTILITIES & ANIMATIONS --- */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-left-color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.hidden { display: none !important; }

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

/* --- 7. MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    .col-lg-5 .sticky-summary {
        position: static !important;
        margin-top: 20px;
        width: 100%;
        box-shadow: none;
        padding-bottom: 100px;
        z-index: 1;
    }
    
    .mobile-sticky-footer {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.95);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.1);
        padding: 15px 20px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    }
    
    .desktop-submit-btn {
        display: none !important;
    }
}