﻿
/* ========================================================
   BOOKING MODAL & EXTRA FIELDS
   ======================================================== */

.booking-extra-fields {
    margin-top: 12px;
}
.booking-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.booking-row .uber-input {
    flex: 1;
    min-width: 0;
}
.booking-row select.uber-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.btn-reservar-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.btn-reservar-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow);
}

/* MODAL OVERLAY */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.booking-modal-card {
    position: relative;
    background: var(--bg-primary, #0d0d0d);
    border: 1px solid var(--gold-soft);
    border-radius: 20px;
    padding: 24px 24px 16px; max-height: 98vh; overflow-y: auto;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--gold-glow);
    animation: modalSlideUp 0.4s ease;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-state h3 {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.5rem;
    color: var(--text-primary, #fff);
    margin: 16px 0 8px;
}
.modal-state p {
    color: var(--text-secondary, #aaa);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* SPINNER */
.modal-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--gold-soft);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* COUNTDOWN */
.modal-countdown {
    font-family: var(--font-mono, monospace);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    margin: 12px 0;
    letter-spacing: 2px;
}

.modal-route-summary {
    font-size: 0.85rem;
    color: var(--text-secondary, #888);
    margin-top: 8px;
    padding: 10px;
    background: var(--bg-card, rgba(255,255,255,0.05));
    border-radius: 8px;
}

/* SUCCESS / ERROR ICONS */
.modal-icon-success svg,
.modal-icon-error svg {
    width: 64px;
    height: 64px;
}

/* PRICE DISPLAY */
.modal-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    margin: 12px 0 4px;
}

/* PAY BUTTON */
.btn-pay-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    margin-top: 12px;
    text-decoration: none;
}

.modal-accepted-note {
    font-size: 0.8rem !important;
    color: var(--text-tertiary, #666) !important;
    margin-top: 8px !important;
}

.modal-payment-panel {
    margin-top: 0px;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

#sumup-card {
    min-height: 170px;
    margin: 0 -10px;
}

/* CLOSE BUTTON */
.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-secondary, #888);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close-btn:hover {
    color: var(--gold);
}

/* LIGHT THEME overrides for modal */
body.light .booking-modal-card {
    background: #fff;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 40px rgba(212,175,55,0.1);
}
body.light .modal-state h3 {
    color: #1a1a1a;
}
body.light .modal-state p {
    color: #666;
}

/* RESPONSIVE booking fields */
@media (max-width: 600px) {
    .booking-row {
        flex-direction: column;
    }
    .booking-modal-card {
        padding: 16px 16px;
        width: 95%;
    }
}

body.light .modal-route-summary {
    background: #f8f9fa;
    color: #444;
}


.lds-hourglass,
.lds-hourglass:after {
  box-sizing: border-box;
}
.lds-hourglass {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
}
.lds-hourglass:after {
  content: " ";
  display: block;
  border-radius: 50%;
  width: 0;
  height: 0;
  margin: 4px;
  box-sizing: border-box;
  border: 16px solid var(--gold);
  border-color: var(--gold) transparent var(--gold) transparent;
  animation: lds-hourglass 1.2s infinite;
}
@keyframes lds-hourglass {
  0% {
    transform: rotate(0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  50% {
    transform: rotate(900deg);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  100% {
    transform: rotate(1800deg);
  }
}

#modal-payment-status { text-align: center; margin: 20px 0; }

