html.goat-quote-open {
    overflow: hidden;
}

#goat-quote-dialog {
    display: none;
    box-sizing: border-box;
    width: min(42rem, calc(100% - 1.5rem));
    max-width: none;
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--goat-ink, #09132e);
    box-shadow: 0 18px 64px rgb(5 21 43 / 28%);
}

#goat-quote-dialog[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

#goat-quote-dialog::backdrop {
    background: rgb(6 23 43 / 68%);
}

.goat-quote-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem clamp(1rem, 4vw, 1.75rem);
    border-bottom: 1px solid var(--goat-line, #c9d7e4);
    background: var(--goat-ice, #e7f4fc);
}

#goat-quote-title {
    margin: 0;
    color: var(--goat-ink, #09132e);
    font-size: clamp(1.4rem, 4vw, 1.9rem);
}

.goat-quote-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--goat-line, #c9d7e4);
    border-radius: 50%;
    background: #fff;
    color: var(--goat-navy, #0b2545);
    font: 1.6rem/1 Arial, sans-serif;
    cursor: pointer;
}

.goat-quote-close:hover {
    background: var(--goat-navy, #0b2545);
    color: #fff;
}

.goat-quote-content {
    overflow: auto;
    overscroll-behavior: contain;
    padding: clamp(1rem, 3vw, 1.25rem) clamp(1rem, 4vw, 1.75rem);
}

.goat-quote-content .fluentform .ff-el-group {
    margin-bottom: .85rem;
}

.goat-quote-content .ff-el-form-control {
    font-size: 1rem;
}

.goat-quote-content .ff-btn-submit {
    min-height: 44px;
    background-color: var(--goat-blue, #0067f5);
}

@media (min-width: 600px) {
    .goat-quote-content .frm-fluent-form > fieldset {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
    }

    .goat-quote-content .frm-fluent-form > fieldset > :not(.goat-rfq-half) {
        grid-column: 1 / -1;
    }
}
