﻿/* ---------- ModelHeadreOverride ---------- */
.modal-header {
    background: #1c63b8;
    border-bottom: 0px;
    min-height: 16.4286px;
    padding: 10px;
}
/* ---------- Stepper ---------- */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 10px auto;
    font-family: Arial, sans-serif;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
}

.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-weight: bold;
    z-index: 1;
    position: relative;
    font-size: 16px;
}
    .circle.current {
        background: #3498db;
    }

    .circle.done {
        background: #2ecc71; 
        font-size: 20px;
    }

     
.label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold; 
    color: #333; 
}

.step.done .label {
    color: #1c63b8;
}

 
.step::after {
    content: "";
    position: absolute;
    top: 20px; /* middle of circle */
    left: 50%;
    width: 100%;
    height: 4px;
    background: #ccc;
    z-index: 0;
}

.step:last-child::after {
    display: none;
}


/* ---------- DATE SELECTOR ---------- */
.date-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.date-box {
    position: relative; /* needed for tooltip */
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    min-width: 70px;
    user-select: none;
    margin: 0 1px;
}

    .date-box.active {
        background-color: #0d6efd;
        color: #fff;
        border-color: #0d6efd;
    }

    /* ---------- OFF DAYS ---------- */
    .date-box.off-day {
        background-color: #f8d7da;
        border: 1px solid #f5c2c7;
        color: #721c24;
        opacity: 0.6;
        cursor: not-allowed;
    }

        .date-box.off-day .off-label {
            font-size: 0.8em;
            font-weight: 700;
            color: #721c24;
        }

/* ---------- TIME SLOTS ---------- */
.slot-heading {
    text-align: center;
    font-weight: bold;
    margin:10px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    position: relative; /* needed for tooltip */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}

    .time-slot:not(.unavailable):hover {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13,110,253,.12);
    }

    /* Available */
    .time-slot.available {
        background: #f6fff8;
        border-color: #28a7454d;
        color: #198754;
    }

        .time-slot.available:hover {
            background: #0d6efd;
            border-color: #198754;
            color: #fff;
        }

    /* Selected/active */
    .time-slot.active,
    .time-slot.selected {
        background: #198754;
        border-color: #198754;
        color: #fff;
    }

    /* Unavailable */
    .time-slot.unavailable,
    .time-slot[aria-disabled="true"] {
        background: #f8f9fa;
        border-color: #e5e7eb;
        color: #9aa0a6;
        cursor: not-allowed;
        opacity: .9;
        text-decoration: line-through;
    }

    /* ---------- TOOLTIP (shared for date-box & time-slot) ---------- */
    .date-box[data-title]:hover::after,
    .date-box[data-title]:hover::before,
    .time-slot[data-title]:hover::after,
    .time-slot[data-title]:hover::before {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
        z-index: 9999;
    }

    .date-box[data-title]:hover::after,
    .time-slot[data-title]:hover::after {
        content: attr(data-title);
        bottom: 110%;
        background: #111;
        color: #fff;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 12px;
        white-space: normal;
        text-align: center;
        max-width: 220px;
        box-shadow: 0 4px 12px rgba(0,0,0,.2);
    }

    .date-box[data-title]:hover::before,
    .time-slot[data-title]:hover::before {
        content: "";
        bottom: calc(110% - 6px);
        border-width: 6px 6px 0 6px;
        border-style: solid;
        border-color: #111 transparent transparent transparent;
    }

    /* Tooltip variants */
    .date-box.off-day[data-title]:hover::after,
    .time-slot.unavailable[data-title]:hover::after {
        background: #6c757d;
    }

    .date-box.off-day[data-title]:hover::before,
    .time-slot.unavailable[data-title]:hover::before {
        border-top-color: #6c757d;
    }

/* ---------- LABELS ---------- */
.labels {
    margin-top: 1px;
}
.Messagelabels {
    margin-top: 15px;
}
.bg-primary {
    background-color: #0d6efd !important;
    margin: 10px;
}
.text-success {
    color: #198754 !important;
    margin: 1px;
}
 
.appointment-label {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 8px;
    width: 100%;
}



/* ---------- AppointmentSummary ---------- */
.invoice-PaymentMethod {
    margin-top: 50px;
}

.paynow-btn {
    background-color: #1c63b8;
    border-color: #1c63b8;
    color: #fff;
    padding: 10px 30px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 15px;
    transition: background-color 0.3s ease;
}

    .paynow-btn:hover {
        background-color: #2ecc71;
        color: white;
        border-color: #15508c;
    }
.summary-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px;
    background: #EBF3F9;
    width: 100%;
    max-width: 900px;
}

.section-title {
    color: #052c65;
    font-weight: 400;
    border-bottom: 2px solid #ccc;
    /*//padding-bottom: 8px;*/
}

.field-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 16px;
    flex-wrap: wrap;
    gap: 6px;
}

/* Summary card reg box */
.car-registration-summary-box {
    position: relative;
    display: inline-block;
}

.car-registration-summary-ui {
    background: linear-gradient(to bottom, #f8d038 0%, #f5ca2e 100%);
    padding: .15em .75em .15em 1.5em;
    font-weight: bold;
    font-size: 1.2em;  
    border-radius: 4px;
    border: 1px solid #000;
    box-shadow: 1px 1px 1px #ddd;
    font-family: helvetica, arial, sans-serif;
    text-transform: uppercase;
    text-align: center;
    width: 160px;

}
 
.car-reg-summary-unit {
    font-family: helvetica, arial, sans-serif;
    font-weight: bold;
    display: block;
    width: 22px;
    height: 100%;
    font-size: 0.8em;
    background: #063298;
    position: absolute;
    top: 0;
    border-radius: 4px 0 0 4px;
    color: #f8d038;
    line-height: 2.2em;  
    text-align: center;
}


/* ---------- MobileResponsive ---------- */
@media (max-width: 768px) {
    #dateList {
        display: flex;
        flex-wrap: wrap;  
        justify-content: center;
        gap: 6px;
    }

    .date-box {
        flex: 1 1 calc(25% - 6px);  
        min-width: 60px;
        
    }
}
@media (max-width: 480px) {
    .date-box {
        flex: 1 1 calc(33.33% - 6px);  
        min-width: 55px;
        font-size: 12px;
        padding: 6px;
    }

    .appointment-label {
        font-size: 1rem;
    }
}
@media (max-width: 576px) {
    
    .field-row:has(#summaryDateTime) {
        flex-direction: column; 
        align-items: flex-start; 
    }

        .field-row:has(#summaryDateTime) strong {
            margin-bottom: 4px;  
        }
    .car-registration-summary-ui {
        width: 180px;
    }

    #regNumberRow {
        flex-direction: column;
        align-items: center; /* center input horizontally */
        text-align: center; /* center the label text too */
    }
}

 
