/* Reusable quote dialog. Loaded after the production stylesheet on modal-enabled pages. */
.quote-dialog,
.quote-dialog * {
    box-sizing: border-box;
}

.quote-dialog {
    width: min(62rem, calc(100vw - 3rem));
    max-width: 62rem;
    max-height: 90vh;
    max-height: 90dvh;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: var(--border-width-hairline, 1px) solid var(--support-smoke, #E8E8E5);
    border-radius: var(--radius-control, 4px);
    background: var(--white, #FFFFFF);
    color: var(--text-dark, #1A1A1A);
    box-shadow: none;
}

.quote-dialog::backdrop {
    background: rgba(0, 0, 0, 0.68);
}

.quote-dialog[open] {
    display: block;
}

.quote-dialog-shell {
    display: flex;
    max-height: 90vh;
    max-height: 90dvh;
    flex-direction: column;
}

.quote-dialog-header {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-6, 1.5rem);
    align-items: start;
    padding: var(--space-6, 1.5rem);
    border-bottom: var(--border-width-hairline, 1px) solid var(--support-smoke, #E8E8E5);
    background: var(--white, #FFFFFF);
}

.quote-dialog-intro {
    max-width: 60ch;
}

.quote-dialog .quote-form-eyebrow {
    margin: 0 0 var(--space-2, 0.5rem);
    color: var(--support-ember, #630004);
    font-family: var(--font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace);
    font-size: var(--font-size-xs, 0.8125rem);
    font-weight: var(--font-weight-semibold, 600);
    line-height: var(--line-height-heading, 1.2);
    letter-spacing: var(--letter-spacing-label, 0.08em);
}

.quote-dialog-intro h2 {
    margin: 0 0 var(--space-2, 0.5rem);
    color: var(--text-dark, #1A1A1A);
    font-family: var(--font-family-heading, "Playfair Display", serif);
    font-size: var(--font-size-h2, 2.75rem);
    font-weight: var(--font-weight-semibold, 600);
    line-height: var(--line-height-heading, 1.2);
    text-align: left;
}

.quote-dialog-intro > p:last-child {
    margin: 0;
    color: var(--text-light, #666666);
    font-family: var(--font-family-body, "Inter", sans-serif);
    font-size: var(--font-size-body, 1rem);
    line-height: var(--line-height-body, 1.65);
}

.quote-dialog-close {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: var(--border-width-hairline, 1px) solid var(--support-smoke-dark, #747876);
    border-radius: var(--radius-control, 4px);
    background: var(--white, #FFFFFF);
    color: var(--text-dark, #1A1A1A);
    font: inherit;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color var(--transition-standard, 250ms cubic-bezier(0.2, 0, 0, 1)),
        border-color var(--transition-standard, 250ms cubic-bezier(0.2, 0, 0, 1));
}

.quote-dialog-close:hover {
    border-color: var(--primary-color, #1A1A1A);
    background: var(--light-bg, #F8F8F8);
}

.quote-dialog-close:focus-visible,
.quote-dialog :where(input, select, textarea, button):focus-visible {
    outline: 3px solid var(--color-focus, #B4241C);
    outline-offset: 2px;
}

.quote-dialog-body {
    min-height: 0;
    padding: var(--space-6, 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white, #FFFFFF);
}

.quote-dialog .booking-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5, 1.25rem) var(--space-6, 1.5rem);
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.quote-dialog .form-row {
    display: contents;
}

.quote-dialog .form-group {
    min-width: 0;
    margin: 0;
}

.quote-dialog .quote-form-span-all {
    grid-column: 1 / -1;
}

.quote-dialog .form-group > label:not(.checkbox-label) {
    display: block;
    margin: 0 0 var(--space-2, 0.5rem);
    color: var(--text-dark, #1A1A1A);
    font-family: var(--font-family-body, "Inter", sans-serif);
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: var(--font-weight-semibold, 600);
    line-height: var(--line-height-body, 1.65);
    text-align: left;
}

.quote-dialog .form-group input:not([type="checkbox"]),
.quote-dialog .form-group select,
.quote-dialog .form-group textarea {
    width: 100%;
    padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
    border: var(--border-width-hairline, 1px) solid var(--support-smoke-dark, #747876);
    border-radius: var(--radius-control, 4px);
    background: var(--white, #FFFFFF);
    box-shadow: none;
    color: var(--text-dark, #1A1A1A);
    font-family: var(--font-family-body, "Inter", sans-serif);
    font-size: var(--font-size-body, 1rem);
    line-height: var(--line-height-body, 1.65);
    transition: border-color var(--transition-standard, 250ms cubic-bezier(0.2, 0, 0, 1));
}

.quote-dialog .form-group input:not([type="checkbox"]),
.quote-dialog .form-group select {
    height: var(--space-12, 3rem);
    min-height: var(--space-12, 3rem);
}

.quote-dialog .form-group textarea {
    height: 7.25rem;
    min-height: 7.25rem;
    resize: vertical;
}

.quote-dialog .form-group input:not([type="checkbox"]):hover,
.quote-dialog .form-group select:hover,
.quote-dialog .form-group textarea:hover,
.quote-dialog .form-group input:not([type="checkbox"]):focus,
.quote-dialog .form-group select:focus,
.quote-dialog .form-group textarea:focus {
    border-color: var(--primary-color, #1A1A1A);
    box-shadow: none;
}

.quote-dialog .form-group input::placeholder,
.quote-dialog .form-group textarea::placeholder {
    color: var(--text-light, #666666);
    opacity: 0.8;
}

.quote-dialog .checkbox-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4, 1rem);
}

.quote-dialog .checkbox-label {
    display: flex;
    min-height: var(--space-12, 3rem);
    align-items: center;
    gap: var(--space-3, 0.75rem);
    margin: 0;
    padding-block: var(--space-2, 0.5rem);
    color: var(--text-dark, #1A1A1A);
    font-family: var(--font-family-body, "Inter", sans-serif);
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--line-height-body, 1.65);
    text-align: left;
}

.quote-dialog .checkbox-label input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    min-height: 0;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    appearance: auto;
    accent-color: var(--primary-color, #1A1A1A);
    box-shadow: none;
}

.quote-dialog .checkbox-label .checkmark {
    display: none;
}

.quote-dialog .quote-form-submit {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: var(--space-2, 0.5rem);
}

.quote-dialog .quote-form-submit .btn {
    min-height: 3.5rem;
    padding: var(--space-4, 1rem) var(--space-8, 2rem);
    border: var(--border-width-hairline, 1px) solid var(--primary-color, #1A1A1A);
    border-radius: var(--radius-control, 4px);
    background: var(--primary-color, #1A1A1A);
    box-shadow: none;
    color: var(--white, #FFFFFF);
    font-family: var(--font-family-body, "Inter", sans-serif);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold, 600);
    line-height: 1.2;
    transition:
        background-color var(--transition-standard, 250ms cubic-bezier(0.2, 0, 0, 1)),
        border-color var(--transition-standard, 250ms cubic-bezier(0.2, 0, 0, 1)),
        color var(--transition-standard, 250ms cubic-bezier(0.2, 0, 0, 1));
    transform: none;
}

.quote-dialog .quote-form-submit .btn:hover:not(:disabled) {
    border-color: var(--secondary-color, #333333);
    background: var(--secondary-color, #333333);
    box-shadow: none;
    transform: none;
}

.quote-dialog .form-note {
    margin: 0;
    color: var(--text-light, #666666);
    font-family: var(--font-family-body, "Inter", sans-serif);
    font-size: var(--font-size-sm, 0.875rem);
    line-height: var(--line-height-body, 1.65);
    text-align: right;
}

body.quote-dialog-open {
    overflow: hidden;
}

@media (max-width: 64rem) {
    .quote-dialog .checkbox-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap-block: var(--space-2, 0.5rem);
    }
}

@media (max-width: 48rem) {
    .quote-dialog {
        width: calc(100vw - 1rem);
        max-width: none;
        height: calc(100vh - 1rem);
        height: calc(100dvh - 1rem);
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
    }

    .quote-dialog-shell {
        height: 100%;
        max-height: none;
    }

    .quote-dialog-header,
    .quote-dialog-body {
        padding: var(--space-5, 1.25rem);
    }

    .quote-dialog-intro h2 {
        font-size: var(--font-size-h2, 1.75rem);
    }

    .quote-dialog .booking-form {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-5, 1.25rem);
    }

    .quote-dialog .quote-form-span-all {
        grid-column: 1;
    }

    .quote-dialog .quote-form-submit {
        align-items: stretch;
    }

    .quote-dialog .quote-form-submit .btn {
        width: 100%;
    }

    .quote-dialog .form-note {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quote-dialog-close,
    .quote-dialog .quote-form-submit .btn,
    .quote-dialog .form-group input,
    .quote-dialog .form-group select,
    .quote-dialog .form-group textarea {
        transition: none;
    }
}
