/* Shared quote forms — watch, jewelry, diamond */

.quoteform-page {
    background: #ffffff;
}

.quoteform-page .ast-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}

.quoteform-banner {
    width: 100%;
    background: #0a0f0e;
}

.quoteform-banner img {
    width: 100%;
    height: auto;
    max-height: min(28vw, 280px);
    object-fit: cover;
    object-position: center;
    display: block;
}

.quoteform-banner--tall img {
    max-height: min(42vw, 400px);
}

.quoteform-layout {
    display: grid;
    gap: 0.4375rem;
    align-items: start;
}

@media screen and (min-width: 900px) {
    .quoteform-layout {
        --quoteform-intro-pad-top: 2rem;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
        grid-template-rows: auto auto;
        column-gap: 2.5rem;
        row-gap: 0;
        align-items: start;
    }

    .quoteform-intro {
        grid-column: 1;
        grid-row: 1;
    }

    .quoteform-main {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
    }

    /* Top aligns with heading row; height = sidebar content only (not full column stretch) */
    .quoteform-sidebar {
        grid-column: 2;
        grid-row: 1 / -1;
        align-self: start;
        justify-self: stretch;
        width: 100%;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 899.98px) {
    .quoteform-intro,
    .quoteform-main,
    .quoteform-sidebar {
        grid-column: auto;
        grid-row: auto;
    }
}

.quoteform-main {
    min-width: 0;
}

.quoteform-intro {
    padding-top: 1.75rem;
    padding-bottom: 0.3125rem;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

@media screen and (min-width: 900px) {
    /* Must come after base .quoteform-intro so desktop top padding matches gold sidebar (see .quoteform-sidebar). */
    .quoteform-intro {
        padding-top: var(--quoteform-intro-pad-top, 2rem);
    }
}

.quoteform-heading {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(1.25rem, 3.2vw, 1.65rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a1a1a;
    line-height: 1.25;
}

.quoteform-heading span {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.quoteform-heading--diamond {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    line-height: 1.2;
}

.quoteform-heading--diamond span {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.quoteform-page--diamond .quoteform-intro .quoteform-lede {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: #1a1a1a;
}

.quoteform-intro .quoteform-lede {
    margin: 0.65rem 0 0;
    max-width: 36rem;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #5c5c5c;
}

.quoteform-form-wrap {
    max-width: none;
    margin: 0;
    --qf-primary: #38a035;
    --qf-primary-dark: #066e03;
    --qf-label: #1a1a1a;
    --qf-border: #8a9099;
    --qf-radius: 3px;
}

.quoteform-alert {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: var(--qf-radius);
    font-size: 0.9375rem;
}

.quoteform-alert--success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}

.quoteform-alert--error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #b71c1c;
}

.quoteform-form {
    font-size: 14px;
}

.quoteform-field {
    margin-bottom: 1.35rem;
}

.quoteform-field--error .quoteform-input,
.quoteform-field--error .quoteform-select,
.quoteform-field--error .quoteform-textarea {
    border-color: #c62828;
}

.quoteform-field--error .quoteform-radio-input {
    outline: 2px solid #c62828;
    outline-offset: 2px;
}

.quoteform-label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: var(--qf-label);
    line-height: 1.35;
    font-size: 0.9375rem;
}

.quoteform-required {
    font-weight: 500;
    color: #c2542c;
    font-size: 13px;
}

.quoteform-input,
.quoteform-select,
.quoteform-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--qf-border);
    border-radius: var(--qf-radius);
    font-family: var(--font);
    font-size: 1rem;
    color: #112337;
    background: #fff;
}

.quoteform-select {
    appearance: auto;
    cursor: pointer;
}

.quoteform-textarea {
    min-height: 3rem;
    resize: vertical;
}

.quoteform-char-count {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #6b6b6b;
}

.quoteform-input:focus-visible,
.quoteform-select:focus-visible,
.quoteform-textarea:focus-visible {
    outline: 2px solid var(--qf-primary);
    outline-offset: 1px;
}

.quoteform-field-hint {
    margin: 0.35rem 0 0;
    font-size: 13px;
    color: #c62828;
}

.quoteform-name-row {
    display: grid;
    gap: 1rem;
}

@media screen and (min-width: 480px) {
    .quoteform-name-row {
        grid-template-columns: 1fr 1fr;
    }
}

.quoteform-name-row label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 13px;
    font-weight: 500;
    color: var(--qf-label);
}

.quoteform-fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

.quoteform-legend {
    padding: 0;
    margin-bottom: 0.45rem;
}

.quoteform-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    align-items: center;
}

.quoteform-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-size: 1rem;
    color: #1a1a1a;
}

.quoteform-radio-input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--qf-primary);
    cursor: pointer;
}

.quoteform-file-hint {
    margin: 0.35rem 0 0;
    font-size: 13px;
    color: #585e6a;
}

.quoteform-submit {
    margin-top: 0.5rem;
    padding: 0.75rem 2.25rem;
    border: none;
    border-radius: var(--qf-radius);
    background: var(--qf-primary);
    color: #fff;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.quoteform-submit:hover,
.quoteform-submit:focus-visible {
    background: var(--qf-primary-dark);
}

.quoteform-submit:focus-visible {
    outline: 2px dotted var(--focus);
    outline-offset: 3px;
}

/* Gold sidebar */
.quoteform-sidebar {
    background: #b5a36a;
    color: #ffffff;
    padding: 1.35rem 1.25rem 1.5rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
}

@media screen and (min-width: 900px) {
    .quoteform-sidebar {
        margin: 40px 0 0;
        padding: var(--quoteform-intro-pad-top, 2rem) 1.35rem 1.75rem;
    }
}

@media screen and (min-width: 1024px) {
    .quoteform-sidebar {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.quoteform-sidebar__title {
    margin: 0 0 1.1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.45;
    color: #ffffff;
    text-align: center;
}

@media screen and (min-width: 900px) {
    .quoteform-sidebar__title {
        text-align: left;
        font-size: 0.78rem;
    }
}

.quoteform-sidebar-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0;
}

.quoteform-sidebar-outro {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.quoteform-step-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: transparent;
}

.quoteform-step-card__media {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quoteform-step-card__media img {
    width: 48px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.quoteform-step-card__body {
    min-width: 0;
}

.quoteform-step-card__title {
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.quoteform-step-card__text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.quoteform-step-card__text strong {
    font-weight: 700;
}

.quoteform-outro {
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.98);
    text-align: left;
}

@media screen and (min-width: 1024px) {
    .quoteform-page .ast-container {
        padding: 0 2rem 4rem;
    }
}
