
.booking-form {
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 420px;
}

.form-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    padding: 0 12px 0 0;
    background: #fff;
    max-width: 400px;
    width: 100%;
    margin-top: 15px;
    height: 100px;
}

.input-group {
    flex-grow: 1;
    transition: opacity 0.4s ease, flex-grow 0.2s ease;
}

.input-group.disabled {
    opacity: 0;
    pointer-events: none;
}

.input-group.has-return {
    flex-grow: 0;
}

.inputs-row {
    width: 100%;
}

.inputs-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--light-blue); 
    line-height: 1.2;;
}

.input-hint {
    font-size: smaller;
    color: gray;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--light-blue); 
    line-height: 1.2;;
}

.form-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  height: 100%;
  padding: 13px;
  border-radius: 6px;
  background-color: var(--yellow);
  color: #335381; 
  font-size: 16px;
  flex-shrink: 0; 
}

.form-icon img {
  width: 28px;
  object-fit: contain;
}

.form-group select {
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 16px;
    color: #888;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

.form-group--service-type {
    align-items: stretch;
    height: auto;
    padding: 0;
    background: transparent;
    gap: 0;
}

.form-group--service-type .form-icon {
    border-radius: 6px 0 0 6px;
}

.service-type-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding-left: 8px;
}

.service-type-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-type-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 8px;
    padding: 5px 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-type-option__bullet {
    width: 16px;
    height: 16px;
    border: 2px solid #8f9bb1;
    border-radius: 50%;
    margin-top: 1px;
    flex-shrink: 0;
    position: relative;
}

.service-type-option__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-type-option__primary {
    font-size: 16px;
    line-height: 1.2;
    color: var(--dark-blue);
    font-weight: 700;
}

.service-type-option__secondary {
    font-size: 13px;
    line-height: 1.2;
    color: var(--light-blue);
    font-weight: 700;
}

.service-type-radio:checked + .service-type-option .service-type-option__bullet {
    border-color: #f4b400;
}

.service-type-radio:checked + .service-type-option .service-type-option__bullet::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #f4b400;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* =============================================
   ORDENAR TIPOS DE SERVICIO
   ============================================= */

.grid-area-1 { grid-area: 1/1/2/2; }
.grid-area-2 { grid-area: 2/1/3/2; }
.grid-area-3 { grid-area: 1/3/2/4; }
.grid-area-4 { grid-area: 1/2/2/3; }
.grid-area-6 { grid-area: 2/2/3/3; }
.grid-area-7 { grid-area: 2/3/3/4; }

@media (max-width: 768px) {
    .grid-area-1 { grid-area: 1/1/2/2; }
    .grid-area-2 { grid-area: 1/2/2/3; }
    .grid-area-3 { grid-area: 3/1/4/2; }
    .grid-area-4 { grid-area: 2/1/3/2; }
    .grid-area-6 { grid-area: 2/2/3/3; }
    .grid-area-7 { grid-area: 3/2/4/3; }
}


.form-row { display: flex; gap: 10px; }

.text-input {
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 16px;
  color: #888;
  width: 100%;
  background: transparent;
}

/* =============================================
   AUTOCOMPLETADO
   ============================================= */

.autocomplete {
	position: relative;
}

.autocomplete-results {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.15);
	max-height: 250px;
	overflow-y: auto;
	z-index: 50;
}

.autocomplete-item {
	padding: 10px 14px;
	cursor: pointer;
}

.autocomplete-item:hover {
	background: #f5f5f5;
}

.autocomplete-icon {
    font-size: 20px;
    width: 24px;
}

.autocomplete-name {
	font-weight: 600;
}

.autocomplete-meta {
    display: none;
	font-size: 0.85rem;
	color: #777;
}

/* =============================================
   STEPPER
   ============================================= */
.stepper-row {
    position: relative;
    display: flex;
    gap: 10px;
}

.stepper-group {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    user-select: none;
    -webkit-user-select: none;
    max-width: 200px;
}

.stepper-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: #f5f5f5;
    font-size: 12px;
    color: #555;
    border-bottom: 1px solid #ddd;
    font-family: var(--font);
}

.stepper-label i {
    color: var(--yellow);
}

.stepper-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
}

.stepper-btn {
    background: var(--yellow);
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.15s;
    font-family: var(--font);
    touch-action: manipulation;
}

.stepper-btn:hover { opacity: 0.85; }

.stepper-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.stepper-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-blue);
    min-width: 24px;
    text-align: center;
    font-family: var(--font);
}


/* =============================================
   VEHICLE CARDS (inside booking form)
   ============================================= */
.vehicle-section {
    display: block;
    flex-direction: column;
    gap: 8px;
    animation: vehicleFadeIn 0.35s ease forwards;
}

.vehicle-section.visible {
    display: flex;
}

@keyframes vehicleFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vehicle-section__empty {
    font-size: 16px;
    font-weight: 500;
    color: #888;
    text-align: center;
    padding: 10px 0;
}

.vehicle-section__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.8px;
    color: var(--white);
    padding-top: 10px;
    margin-bottom: 10px;
    border-top: 1px solid #eee;
}

/* Cards row */
.vehicle-cards {
    position: relative;
    display: flex;
    justify-content: space-around;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) #f0f0f0;
}

.vehicle-cards::-webkit-scrollbar {
    height: 4px;
}

.vehicle-cards::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 2px;
}

.vehicle-cards::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 2px;
}

/* Single card */
.vehicle-card-mini {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.vehicle-card-mini:hover {
    border-color: var(--yellow);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.25);
}

.vehicle-card-mini.selected {
    border-color: var(--yellow);
    box-shadow: 0 4px 14px rgba(245, 197, 24, 0.30);
}

.vehicle-card-mini.hidden {
    display: none;
}

/* Checkmark badge */
.vehicle-card-mini__check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.vehicle-card-mini__check i {
    font-size: 9px;
    color: var(--dark-blue);
}

.vehicle-card-mini.selected .vehicle-card-mini__check {
    opacity: 1;
    transform: scale(1);
}

/* Card image */
.vehicle-card-mini__img {
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Card body */
.vehicle-card-mini__body {
    padding: 6px 6px 7px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.vehicle-card-mini__description {
    font-size: 12px;
}

.vehicle-card-mini__name {
    font-size: 9.5px;
    font-weight: 300;
    color: var(--dark-blue);
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.vehicle-card-mini__pax {
    font-size: 9px;
    font-weight: 600;
    color: var(--light-blue);
    display: flex;
    align-items: center;
    gap: 3px;
}

.vehicle-card-mini__pax i {
    color: var(--yellow);
    font-size: 8px;
}

.vehicle-card-mini__price {
    font-size: 11px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-top: 2px;
}

/* ================================================
   VALIDATION — estados y mensajes de error
   ================================================ */

/* ── Mensaje de error inline ── */
.validation-message {
  display: none;
  position: absolute;
  bottom: -22px;
  width: 100%;
  margin-top: 5px;
  padding-left: 2px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #ef4444;
}

/* ── Input con error ── */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.614) !important;
  outline: none;
}

/* select con error */
select.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15) !important;
}

/* ── form-group cuando contiene un error ── */
.form-group:has(.input-error) {
  position: relative;
}

.form-group:has(.input-error) .form-icon {
  opacity: 0.55;
}

/* ── Stepper con error ── */
.stepper-control:has(.input-error) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
  border-radius: 8px;
}

/* ── Vehicle section con error ── */
.vehicle-cards:has(~ .form-state .input-error) .vehicle-section__empty,
.vehicle-cards.has-error {
  border: 2px solid #ef4444;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

/* Mensaje de error suelto dentro de vehicle-cards */
.vehicle-cards .validation-message {
  display: block;
  margin: 6px 0 0 2px;
}

/* ── Transición suave al mostrar/ocultar ── */
.validation-message {
  transition: opacity .15s ease;
}

/* ── Input válido (opcional: feedback positivo) ── */
.input-valid {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .12) !important;
}

/* ================================================
   HOME WIDGET REDESIGN (scoped)
   ================================================ */
#booking-widget .booking-form {
    background: #e9e9ec;
    border-radius: 12px;
    padding: 18px;
    gap: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: 650px;
}

#booking-widget .booking-widget__views {
    position: relative;
    overflow: hidden;
    padding: 5px;
}

#booking-widget .booking-widget-view {
    transition: opacity 240ms ease, transform 240ms ease;
}

#booking-widget .booking-widget-view:not(.is-active) {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(14px);
    pointer-events: none;
}

#booking-widget .booking-widget-view.is-active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
}

#booking-widget .booking-form__intro {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#booking-widget .booking-form__title {
    margin: 0;
    color: var(--dark-blue);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

#booking-widget .booking-form__subtitle {
    margin: 0;
    color: #4f5d70;
    font-size: 12px;
    line-height: 1.3;
}

#booking-widget .widget-step {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    border-top: 1px solid rgba(10, 36, 70, 0.12);
    padding-bottom: 8px;
}

#booking-widget .widget-step:first-of-type {
    border-top: 0;
    padding-top: 2px;
}

#booking-widget .widget-step__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#booking-widget .widget-step__badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--dark-blue);
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#booking-widget .widget-step__title {
    color: var(--dark-blue);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

#booking-widget .form-group {
    max-width: 100%;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #d5dae2;
    padding: 0 12px;
    gap: 10px;
    margin-top: 0px;
}

#booking-widget .form-icon {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--dark-blue);
    font-size: 18px;
}

#booking-widget .form-group--service-type {
    border: 0;
    padding: 0;
    background: transparent;
    height: auto;
}

#booking-widget .form-group--service-type .form-icon {
    display: none;
}

#booking-widget .service-type-group {
    padding-left: 0;
}

#booking-widget .service-type-option__icons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#booking-widget .text-input,
#booking-widget .form-group select {
    color: #29384c;
    font-size: 16px;
}

#booking-widget .text-input::placeholder {
    color: #718097;
}

#booking-widget .stepper-row {
    margin-top: 2px;
}

#booking-widget .stepper-group {
    border-radius: 8px;
    border: 1px solid #d5dae2;
}

#booking-widget .stepper-label {
    background: #f8f9fb;
    color: var(--dark-blue);
    font-size: 13px;
    font-weight: 700;
}

#booking-widget .stepper-control {
    padding: 5px 6px;
}

#booking-widget .stepper-btn {
    border-radius: 6px;
}

#booking-widget .vehicle-section {
    margin-top: 2px;
}


#booking-widget .vehicle-cards {
    display: flex;
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
}

#booking-widget .vehicle-card-mini {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 200px;
    border: 1px solid #d7dce5;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(10, 36, 70, 0.08);
    background: #ffffff;
}


#booking-widget .vehicle-card-mini:hover {
    border-color: #cfd5df;
    box-shadow: 0 8px 20px rgba(10, 36, 70, 0.12);
    transform: translateY(-1px);
}

#booking-widget .vehicle-card-mini.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#booking-widget .vehicle-card-mini.disabled .vehicle-card-mini__price {
    visibility: hidden;
}

#booking-widget .vehicle-card-mini.disabled:hover {
    transform: none;
}

#booking-widget .vehicle-card-mini.selected {
    border-color: var(--yellow);
    background: linear-gradient(180deg, #fffef6 0%, #fff6d6 100%);
    box-shadow: 0 10px 22px rgba(245, 197, 24, 0.24);
}

#booking-widget .vehicle-card-mini__img {
    width: 70%;
    height: 66px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    margin: auto;
}

#booking-widget .vehicle-card-mini__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    padding: 0px 14px 7px 14px;
    text-align: center;
    margin-top: 5px;
}

#booking-widget .vehicle-card-mini__name {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.2;
    color: var(--dark-blue);
}

#booking-widget .vehicle-card-mini__price {
    margin-bottom: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-blue);
}

#booking-widget .vehicle-card-mini__check {
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
}

#booking-widget .vehicle-card-mini__check i {
    font-size: 11px;
}

#booking-widget .vehicle-card-mini .price__symbol {
    margin-right: 2px;
}

.inputs-row {
    display: flex;
    gap: 10px;
}

@media (max-width: 992px) {
    #booking-widget .vehicle-cards {
        grid-template-columns: 1fr;
    }

    #booking-widget .vehicle-card-mini__name {
        font-size: 17px;
    }

    #booking-widget .vehicle-card-mini__price {
        font-size: 16px;
    }
}

#booking-widget .btn.btn--yellow {
    background: var(--dark-blue);
    color: var(--yellow);
    border-radius: 8px;
    width: 100%;
    padding: 12px 18px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-top: 20px;
}

#booking-widget .custom-address-toggle {
    border: 0;
    background: transparent;
    color: var(--dark-blue);
    font-size: 13px;
    font-weight: 700;
    padding: 0;
}

#booking-widget .custom-address-toggle:hover {
    text-decoration-thickness: 2px;
    text-decoration: underline;
    cursor: pointer;
}

#booking-widget .custom-address-confirmation {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f3f7ff;
    border: 1px solid #d5e3ff;
    color: var(--dark-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

#booking-widget .custom-address-confirmation i {
    color: #16a34a;
}

#booking-widget .custom-address-edit {
    border: 0;
    background: transparent;
    color: var(--dark-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
    padding: 0;
}

#booking-widget .custom-address-view__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#booking-widget .custom-address-view__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--dark-blue);
    font-size: 13px;
    font-weight: 700;
    padding: 0;
    width: fit-content;
}

#booking-widget .custom-address-view__title {
    margin: 0;
    color: var(--dark-blue);
    font-size: 20px;
    font-weight: 800;
}

#booking-widget .custom-address-view__subtitle {
    margin: 0;
    color: #4f5d70;
    font-size: 13px;
}

#booking-widget .custom-address-view__fields {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

#booking-widget .custom-address-view__field {
    display: grid;
    gap: 6px;
}

#booking-widget .custom-address-view__field label {
    color: var(--dark-blue);
    font-size: 12px;
    font-weight: 700;
}

#booking-widget .custom-address-view__field .text-input,
#booking-widget .custom-address-view__field select {
    height: 40px;
    border: 1px solid #d5dae2;
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
}

#booking-widget .custom-address-view__error {
    position: static;
}

#booking-widget .custom-address-view__actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

#booking-widget .custom-address-view__btn {
    flex: 1;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
}

#booking-widget .custom-address-view__btn:hover {
    opacity: 0.7;
    cursor: pointer;
}

#booking-widget .custom-address-view__btn--cancel {
    background: #d7deea;
    color: var(--dark-blue);
}

#booking-widget .custom-address-view__btn--save {
    background: var(--dark-blue);
    color: var(--yellow);
}

@media (max-width: 768px) {
    #booking-widget .booking-form {
        margin-top: auto;
        min-width: auto;
    }

    #booking-widget .booking-form__subtitle {
        font-size: 14px;
    }

    #booking-widget .widget-step__title {
        font-size: 14px;
    }

    #booking-widget .service-type-option__primary {
        font-size: 17px;
    }

    #booking-widget .service-type-option__secondary {
        font-size: 14px;
    }

    #booking-widget .btn.btn--yellow {
        font-size: 24px;
    }

    .has-return {
        flex-grow: 1 !important;
    }

    .service-type-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vehicle-cards {
        flex-direction: column;
    }

    #booking-widget .vehicle-card-mini {
        max-width: none;
        flex-direction: row;
    }

    #booking-widget .vehicle-card-mini img {
        width: 50%;
        height: 100%;
    }

    .inputs-row {
        flex-wrap: wrap;
    }
}
