/* Shared quote modal — used by cruise-quote-modal.js on homepage, deals, guides, sailing pages */
.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem;
    background: rgba(15, 23, 42, 0.55);
    overflow-y: auto;
}
.quote-modal--open { display: flex; }
.quote-modal[hidden] { display: none !important; }
body.quote-modal-active { overflow: hidden; }

.quote-modal__dialog {
    position: relative;
    width: min(36rem, 100%);
    max-height: min(90vh, 52rem);
    overflow-y: auto;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}
.quote-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    background: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
}
.quote-modal__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem;
}
.quote-modal__summary {
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.45;
}
.quote-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.quote-modal__section {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.quote-modal__legend {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0.15rem;
    padding: 0;
}
.quote-modal__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.15rem;
}
.quote-modal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 480px) {
    .quote-modal__row { grid-template-columns: 1fr; }
}
.quote-modal__input,
.quote-modal__select,
.quote-modal__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
}
.quote-modal__input:focus,
.quote-modal__select:focus,
.quote-modal__textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.quote-modal__select {
    appearance: auto;
    background: #fff;
    cursor: pointer;
}
.quote-modal__textarea {
    resize: vertical;
    min-height: 4.5rem;
}
.quote-modal__radios {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}
.quote-modal__radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}
.quote-modal__radio input { margin: 0; }
.quote-modal__child-ages[hidden],
.quote-modal__step[hidden] { display: none !important; }
.quote-modal__progress {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 0 0 0.35rem;
}
.quote-modal__hint {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0 0 1rem;
    line-height: 1.45;
}
.quote-modal__micro {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.quote-modal__checks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
@media (min-width: 520px) {
    .quote-modal__checks {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1rem;
    }
}
.quote-modal__check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #374151;
    cursor: pointer;
    line-height: 1.35;
}
.quote-modal__check-input {
    margin: 0.2rem 0 0;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}
.quote-modal__dobs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.quote-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.quote-modal__secondary,
.quote-modal__back {
    width: 100%;
    background: #fff;
    color: #2563eb;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.9rem;
}
.quote-modal__secondary:hover,
.quote-modal__back:hover { background: #eff6ff; }
.quote-modal__back {
    max-width: 8rem;
    align-self: flex-start;
}
.quote-modal__submit {
    width: 100%;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35);
}
.quote-modal__submit:hover { filter: brightness(1.05); }
.quote-modal__whatsapp {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
}
.quote-modal__whatsapp-link {
    color: #128c7e;
    font-weight: 600;
    text-decoration: none;
}
.quote-modal__whatsapp-link:hover { text-decoration: underline; }
.quote-modal__fine {
    text-align: center;
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 0.5rem 0 0;
    line-height: 1.45;
}

.quote-thanks-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    background: #dcfce7;
    color: #166534;
    border-bottom: 1px solid #bbf7d0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.quote-thanks-banner--out {
    opacity: 0;
    transform: translateY(-100%);
}
.quote-thanks-banner p { margin: 0; font-size: 0.9375rem; }
.quote-thanks-banner__close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    border: 0;
    background: transparent;
    color: #166534;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}
