/* Quote request form (/booking/) */

.tep-qr {
    max-width: none;
    color: var(--tep-text-muted);
    font-family: var(--tep-font-sans);
}

.tep-qr__intro {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.tep-qr__alert {
    border: 1px solid #e0796b;
    background: rgba(224, 121, 107, 0.1);
    color: #f3b5ab;
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 15px;
}

.tep-qr__alert:focus {
    outline: 2px solid #e0796b;
    outline-offset: 2px;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.tep-qr__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tep-qr__section {
    border: 1px solid rgba(201, 168, 76, 0.25);
    background: var(--tep-charcoal);
    padding: 28px 32px 32px;
    margin: 0 0 24px;
    min-width: 0;
}

.tep-qr__legend {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    margin-left: -10px;
    font-family: var(--tep-font-serif);
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--tep-white);
}

.tep-qr__legend span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--tep-gold);
    border-radius: 50%;
    font-family: var(--tep-font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--tep-gold);
}

.tep-qr__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin-top: 16px;
}

.tep-qr__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.tep-qr__field--full {
    grid-column: 1 / -1;
}

.tep-qr__field[hidden] {
    display: none;
}

.tep-qr__field > label,
.tep-qr__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--tep-white);
}

.tep-qr abbr[title] {
    color: var(--tep-gold);
    text-decoration: none;
    border: 0;
}

.tep-qr input[type="text"],
.tep-qr input[type="email"],
.tep-qr input[type="tel"],
.tep-qr input[type="number"],
.tep-qr input[type="date"],
.tep-qr input[type="time"],
.tep-qr select,
.tep-qr textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.45);
    color: var(--tep-white);
    font-family: inherit;
    font-size: 16px; /* 16px+ stops iOS zoom on focus */
    line-height: 1.4;
    transition: border-color var(--tep-transition), box-shadow var(--tep-transition);
    -webkit-appearance: none;
    appearance: none;
}

.tep-qr textarea {
    min-height: 0;
    resize: vertical;
}

.tep-qr select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A84C' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.tep-qr select option {
    background: #111;
    color: #fff;
}

.tep-qr input[type="date"]::-webkit-calendar-picker-indicator,
.tep-qr input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.75) sepia(1) saturate(3) hue-rotate(5deg);
    cursor: pointer;
}

.tep-qr input::placeholder,
.tep-qr textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.tep-qr input:focus,
.tep-qr select:focus,
.tep-qr textarea:focus {
    outline: none;
    border-color: var(--tep-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.tep-qr [aria-invalid="true"],
.tep-qr.was-validated :invalid:not(fieldset):not(form) {
    border-color: #e0796b;
}

.tep-qr__error {
    font-size: 13px;
    color: #f3b5ab;
}

/* Radio / checkbox pills */
.tep-qr__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tep-qr__choice {
    position: relative;
    cursor: pointer;
}

.tep-qr__choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.tep-qr__choice span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--tep-white);
    font-size: 14px;
    transition: border-color var(--tep-transition), background var(--tep-transition), color var(--tep-transition);
}

.tep-qr__choice input:checked + span {
    border-color: var(--tep-gold);
    background: rgba(201, 168, 76, 0.14);
    color: var(--tep-gold);
}

.tep-qr__choice input:focus-visible + span {
    outline: 2px solid var(--tep-gold);
    outline-offset: 2px;
}

@media (hover: hover) {
    .tep-qr__choice:hover span {
        border-color: rgba(201, 168, 76, 0.6);
    }
}

/* Consent */
.tep-qr__field > label.tep-qr__consent {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--tep-text-muted);
}

.tep-qr__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
}

.tep-qr__consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--tep-gold);
}

.tep-qr__consent a,
.tep-qr__reassure a,
.tep-qr--sent a:not(.tep-btn) {
    color: var(--tep-gold);
}

/* Submit */
.tep-qr__submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 8px;
}

.tep-qr__submit .tep-btn {
    min-height: 54px;
    padding: 16px 40px;
    font-size: 12px;
}

.tep-qr__submit .tep-btn.is-loading {
    opacity: 0.6;
    cursor: progress;
}

.tep-qr__reassure {
    font-size: 13px;
    line-height: 1.7;
}

/* Sent state */
.tep-qr--sent {
    border: 1px solid var(--tep-gold);
    background: rgba(201, 168, 76, 0.06);
    padding: 40px;
    font-size: 16px;
    line-height: 1.7;
}

.tep-qr--sent > * + * {
    margin-top: 14px;
}

.tep-qr__sent-title {
    font-family: var(--tep-font-serif);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 400;
    color: var(--tep-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tep-qr__sent-ref {
    color: var(--tep-gold);
    font-weight: 600;
}

/* Google Places suggestions: match the dark theme and sit above the fixed header. */
.pac-container {
    z-index: 10060;
    font-family: var(--tep-font-sans);
}

@media (max-width: 768px) {
    .tep-qr__section {
        padding: 22px 16px 24px;
    }

    .tep-qr__legend {
        font-size: 17px;
    }

    .tep-qr__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .tep-qr__choices {
        gap: 8px;
    }

    .tep-qr__choice span {
        padding: 10px 14px;
    }

    .tep-qr__submit .tep-btn {
        width: 100%;
    }

    .tep-qr--sent {
        padding: 28px 18px;
    }
}
