/* ============================================================
   CONTENEDOR PRINCIPAL
   ============================================================ */

.dab-booking-step {

    width: 100%;

    max-width: 1400px;

    margin: 30px auto;

    box-sizing: border-box;

}

.dab-booking-progress {
    max-width: 1400px;
    margin: 28px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    box-sizing: border-box;
}

.dab-progress-item { padding: 12px; text-align: center; background: #edf0f2; color: #657d94; font-weight: 600; }
.dab-progress-item span { display: block; font-size: 18px; }
.dab-progress-item small { font-size: 12px; }
.dab-progress-item.is-active, .dab-progress-item.is-complete { background: #ff6900; color: #fff; }

.dab-booking-step { padding-left: 20px; padding-right: 20px; }


/* ============================================================
   GRID
   ============================================================ */

.dab-booking-grid {

    display: grid;

    grid-template-columns:
        minmax(380px, 1fr)
        minmax(500px, 1.25fr);

    background: #ffffff;

    border: 1px solid #e2e2e2;

}


/* ============================================================
   COLUMNA FORMULARIO
   ============================================================ */

.dab-booking-form {

    background: #ffffff;

}


/* ============================================================
   CABECERAS
   ============================================================ */

.dab-section-header {

    background: #e9eaec;

    border-top: 2px solid #ff6900;

    padding: 22px 28px;

}


.dab-section-header h2 {

    margin: 0;

    font-size: 18px;

    font-weight: 500;

    text-transform: uppercase;

    color: #6c8195;

}


.dab-section-header-secondary {

    border-top: none;

}


/* ============================================================
   CAMPOS
   ============================================================ */

.dab-field {

    padding: 26px 28px;

    border-bottom: 1px solid #e5e5e5;

    box-sizing: border-box;

    position: relative;

}


.dab-field label {

    display: block;

    margin-bottom: 14px;

    font-size: 15px;

    font-weight: 500;

    text-transform: uppercase;

    color: #657d94;

}


/* ============================================================
   INPUTS
   ============================================================ */

.dab-field input,
.dab-field select,
.dab-field textarea {

    width: 100%;

    height: 54px;

    padding: 0 14px;

    border: 1px solid #d8d8d8;

    background: #ffffff;

    color: #222222;

    font-size: 17px;

    box-sizing: border-box;

    border-radius: 0;

}

.dab-location-suggestions {
    display: none;
    position: absolute;
    z-index: 30;
    top: calc(100% - 18px);
    left: 28px;
    right: 28px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d8d8d8;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.dab-location-suggestion { display: block; width: 100%; padding: 13px 14px; border: 0; border-bottom: 1px solid #eee; background: #fff; text-align: left; cursor: pointer; font-size: 15px; }
.dab-location-suggestion:hover, .dab-location-suggestion:focus { background: #fff2e9; outline: none; }

.dab-field textarea { min-height: 110px; padding: 14px; }
.dab-field-help { margin: -5px 0 14px; color: #657d94; line-height: 1.5; }
.dab-terms-field { background: #fafafa; }
.dab-checkbox-label { display: flex !important; align-items: flex-start; gap: 10px; text-transform: none !important; color: #19314a !important; cursor: pointer; }
.dab-checkbox-label input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
.dab-complete-content { padding: 34px; background: #fff; border: 1px solid #e2e2e2; text-align: center; font-size: 17px; line-height: 1.6; }
.dab-complete-content h3 { margin-top: 0; color: #19314a; font-size: 28px; }
.dab-complete-content a { color: #ff6900; font-weight: 700; }


.dab-field input::placeholder {

    color: #777777;

}


/* ============================================================
   UBICACIONES
   ============================================================ */

.dab-location-wrapper {

    display: flex;

    align-items: center;

    gap: 10px;

}


.dab-location-wrapper input {

    flex: 1;

}


.dab-location-button {

    width: 54px;

    height: 54px;

    background: #ffffff;

    border: 1px solid #dedede;

    color: #ff6900;

    font-size: 32px;

    line-height: 1;

    cursor: pointer;

}


.dab-location-button:hover {

    background: #fafafa;

}


/* ============================================================
   AYUDA
   ============================================================ */

.dab-help {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 18px;

    height: 18px;

    margin-left: 3px;

    border-radius: 50%;

    background: #b9c1c8;

    color: #ffffff;

    font-size: 12px;

    font-weight: bold;

    text-transform: none;

    cursor: help;

}


/* ============================================================
   FECHA + HORA
   ============================================================ */

.dab-fields-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

}


.dab-fields-row .dab-field {

    border-right: 1px solid #e5e5e5;

}


.dab-fields-row .dab-field:last-child {

    border-right: none;

}


/* ============================================================
   SELECT
   ============================================================ */

.dab-extra-options select {

    cursor: pointer;

}


/* ============================================================
   BOTÓN
   ============================================================ */

.dab-booking-actions {

    padding: 28px;

    text-align: left;

}


.dab-button {

    display: inline-block;

    padding: 15px 28px;

    border: 1px solid #ff6900;

    background: #ff6900;

    color: #ffffff;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;

}


.dab-button:hover {

    background: #e85d00;

    border-color: #e85d00;

}


.dab-button:disabled {

    opacity: 0.6;

    cursor: wait;

}


/* ============================================================
   COLUMNA MAPA
   ============================================================ */

.dab-booking-map-column {

    min-width: 0;

    background: #f4f4f4;

}


/* ============================================================
   MAPA
   ============================================================ */

.dab-booking-map {

    position: relative;

    width: 100%;

    height: 560px;

    background:
        linear-gradient(
            135deg,
            #e8f0e4 0%,
            #dce9dc 50%,
            #c7e5ed 100%
        );

    overflow: hidden;

}


.dab-map-placeholder {

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    width: 80%;

    max-width: 400px;

    padding: 30px;

    text-align: center;

    background: rgba(255,255,255,0.92);

    box-sizing: border-box;

}


.dab-map-icon {

    font-size: 42px;

    margin-bottom: 10px;

}


.dab-map-placeholder h3 {

    margin: 0 0 10px;

    font-size: 20px;

}


.dab-map-placeholder p {

    margin: 0;

    color: #666666;

}


/* ============================================================
   RESUMEN DE RUTA
   ============================================================ */

.dab-route-summary {

    display: grid;

    grid-template-columns: 1fr 1fr;

    background: #ffffff;

}


.dab-route-summary-item {

    display: flex;

    align-items: center;

    gap: 18px;

    min-height: 110px;

    padding: 20px 28px;

    border-right: 1px solid #e5e5e5;

    box-sizing: border-box;

}


.dab-route-summary-item:last-child {

    border-right: none;

}


.dab-route-icon {

    font-size: 38px;

}


.dab-route-label {

    display: block;

    margin-bottom: 8px;

    color: #657d94;

    font-size: 14px;

    text-transform: uppercase;

}


.dab-route-summary strong {

    display: block;

    font-size: 25px;

    font-weight: 400;

    color: #19314a;

}


/* ============================================================
   MENSAJE DE RUTA
   ============================================================ */

.dab-route-message {

    margin: 15px;

    padding: 15px 18px;

    background: #ffffff;

    border-left: 4px solid #ff6900;

}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

    .dab-booking-grid {

        grid-template-columns: 1fr;

    }


    .dab-booking-map {

        height: 400px;

    }

}


@media (max-width: 600px) {

    .dab-booking-progress { grid-template-columns: repeat(2, 1fr); padding: 0 12px; }
    .dab-booking-step { padding-left: 12px; padding-right: 12px; }

    .dab-fields-row {

        grid-template-columns: 1fr;

    }


    .dab-fields-row .dab-field {

        border-right: none;

    }


    .dab-route-summary {

        grid-template-columns: 1fr;

    }


    .dab-route-summary-item {

        border-right: none;

        border-bottom: 1px solid #e5e5e5;

    }

}
