/* =========================================================
   CLICK & FIX TECHNOLOGIES
   BOOKING PAGE STYLES
   ========================================================= */


/* =========================================================
   BOOKING HEADER
   ========================================================= */

.booking-header {
    min-height: 72px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.booking-header h1 {
    margin: 0;

    color: var(--dark);

    font-size: 18px;
    font-weight: 750;

    line-height: 1.2;
}

.booking-header p {
    margin: 3px 0 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.2;
}

.back-button {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border: 1px solid var(--border);

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--white);

    color: var(--dark);

    font-size: 22px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.back-button:hover {
    background: var(--primary-light);

    border-color: rgba(13, 110, 253, 0.3);

    color: var(--primary);
}


/* =========================================================
   BOOKING PROGRESS
   ========================================================= */

.booking-progress {
    max-width: 850px;

    margin-left: auto;
    margin-right: auto;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 5px 0;
}

.progress-step {
    min-width: 58px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 5px;

    color: #94a3b8;

    text-align: center;
}

.progress-step span {
    width: 30px;
    height: 30px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e2e8f0;

    color: #64748b;

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.progress-step small {
    font-size: 9px;

    line-height: 1.2;

    white-space: nowrap;
}

.progress-step.active {
    color: var(--primary);
}

.progress-step.active span {
    background: var(--primary);

    color: var(--white);

    box-shadow:
        0 4px 12px rgba(13, 110, 253, 0.25);
}

.progress-line {
    width: 28px;
    height: 2px;

    margin-top: 14px;

    background: #e2e8f0;

    flex-shrink: 1;
}


/* =========================================================
   BOOKING STEP
   ========================================================= */

.booking-step {
    display: none;

    max-width: 850px;

    margin-left: auto;
    margin-right: auto;
}

.booking-step.active {
    display: block;
}


/* =========================================================
   BOOKING CARD
   ========================================================= */

.booking-card {
    padding: 20px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.step-heading {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 22px;
}

.step-number {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 13px;
    font-weight: 800;
}

.step-heading h2 {
    margin: 0;

    color: var(--dark);

    font-size: 20px;
    font-weight: 750;

    line-height: 1.3;
}

.step-heading p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   FORM ELEMENTS
   ========================================================= */

.form-label {
    margin-bottom: 7px;

    color: var(--dark);

    font-size: 13px;
    font-weight: 650;
}

.required {
    color: var(--danger);
}

.optional {
    color: #94a3b8;

    font-weight: 400;

    font-size: 11px;
}

.form-control,
.form-select {
    min-height: 46px;

    border: 1px solid var(--border);

    border-radius: 10px;

    color: var(--dark);

    background-color: var(--white);

    font-size: 14px;

    box-shadow: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

textarea.form-control {
    min-height: auto;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(13, 110, 253, 0.10);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
}

.form-text {
    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   LOCATION OPTIONS
   ========================================================= */

.location-options {
    display: grid;

    grid-template-columns: 1fr;

    gap: 10px;
}

.location-option {
    min-height: 52px;

    padding: 10px 13px;

    display: flex;
    align-items: center;

    gap: 10px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--white);

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.location-option:hover {
    border-color: rgba(13, 110, 253, 0.4);

    background: #fbfdff;
}

.location-option input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: var(--primary);
}

.location-option span {
    color: var(--dark);

    font-size: 13px;
    font-weight: 550;
}


/* =========================================================
   GPS SECTION
   ========================================================= */

.gps-section {
    margin-top: 15px;

    padding: 15px;

    border: 1px solid #cfe2ff;

    border-radius: 12px;

    background: #f5f9ff;
}

.gps-info strong {
    display: block;

    color: var(--dark);

    font-size: 14px;
}

.gps-info p {
    margin: 3px 0 12px;

    color: var(--muted);

    font-size: 12px;
}

#captureLocationBtn {
    min-height: 44px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;
}

.location-status {
    min-height: 20px;

    margin-top: 9px;

    font-size: 12px;
}

.location-status.success {
    color: var(--success);
}

.location-status.error {
    color: var(--danger);
}

.location-status.loading {
    color: var(--primary);
}


/* =========================================================
   ADDRESS SECTION
   ========================================================= */

.address-section {
    padding-top: 3px;
}


/* =========================================================
   SLOT MESSAGE
   ========================================================= */

.slot-message {
    min-height: 22px;

    font-size: 12px;
}

.slot-message.success {
    color: var(--success);
}

.slot-message.error {
    color: var(--danger);
}

.slot-message.info {
    color: var(--primary);
}


/* =========================================================
   STEP ACTIONS
   ========================================================= */

.step-actions {
    max-width: 850px;

    margin: 15px auto 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}

.step-actions .btn {
    min-height: 46px;

    padding-left: 18px;
    padding-right: 18px;

    border-radius: 10px;

    font-size: 13px;
}

.step-actions .btn-primary {
    margin-left: auto;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.summary-card {
    background: #fbfdff;
}

.summary-card h3 {
    margin: 0 0 15px;

    color: var(--dark);

    font-size: 16px;
    font-weight: 750;
}

.summary-item {
    padding: 10px 0;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    border-bottom: 1px solid #edf2f7;
}

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

.summary-label {
    color: var(--muted);

    font-size: 12px;
}

.summary-value {
    max-width: 60%;

    color: var(--dark);

    font-size: 12px;
    font-weight: 600;

    text-align: right;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.form-check {
    padding-left: 1.7em;
}

.form-check-input {
    margin-left: -1.7em;

    width: 18px;
    height: 18px;

    margin-top: 0.15em;

    border-color: var(--border);

    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);

    border-color: var(--primary);
}

.form-check-label {
    color: var(--text);

    font-size: 12px;

    cursor: pointer;
}


/* =========================================================
   LOADING STATE
   ========================================================= */

.btn-loading {
    position: relative;

    pointer-events: none;

    opacity: 0.75;
}

.btn-loading::after {
    content: "";

    width: 15px;
    height: 15px;

    margin-left: 8px;

    display: inline-block;

    vertical-align: -2px;

    border: 2px solid currentColor;

    border-right-color: transparent;

    border-radius: 50%;

    animation: buttonSpinner 0.7s linear infinite;
}

@keyframes buttonSpinner {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .booking-card {
        padding: 16px;

        border-radius: 14px;
    }

    .step-heading {
        margin-bottom: 18px;
    }

    .step-heading h2 {
        font-size: 18px;
    }

    .step-heading p {
        font-size: 12px;
    }

    .progress-line {
        width: 15px;
    }

    .progress-step {
        min-width: 48px;
    }

    .progress-step small {
        font-size: 8px;
    }

    .progress-step span {
        width: 28px;
        height: 28px;
    }

    .step-actions {
        position: sticky;

        bottom: 0;

        z-index: 100;

        margin-top: 12px;

        padding: 10px;

        background: rgba(248, 250, 252, 0.96);

        backdrop-filter: blur(8px);

        border-top: 1px solid var(--border);
    }

    .step-actions .btn {
        flex: 1;

        min-height: 45px;
    }

}


/* =========================================================
   TABLET / DESKTOP
   ========================================================= */

@media (min-width: 576px) {

    .location-options {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (min-width: 768px) {

    .booking-header {
        min-height: 78px;
    }

    .booking-card {
        padding: 28px;
    }

    .step-heading h2 {
        font-size: 22px;
    }

    .progress-line {
        width: 70px;
    }

}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    .site-header,
    .site-footer,
    .booking-progress,
    .step-actions {
        display: none !important;
    }

    body {
        background: white;
    }

    .booking-card {
        border: 1px solid #ddd;

        box-shadow: none;
    }

}

