/* Proportions for the personalized offer section on tablets and phones. */
@media (max-width: 1100px) {
    .contact-section:has(.offer-wizard) {
        width: calc(100% - 48px);
        margin: 0 auto 110px;
        padding: clamp(28px, 4vw, 44px);
    }

    .contact-section:has(.offer-wizard)::before {
        inset: 10px;
        border-radius: 16px;
    }

    .contact-section:has(.offer-wizard) .contact-intro {
        margin-bottom: 32px;
    }

    .contact-section:has(.offer-wizard) .contact-intro h2 {
        max-width: 760px;
        font-size: clamp(2.5rem, 5.5vw, 3.6rem);
        line-height: 1.02;
        text-wrap: balance;
    }

    .contact-section:has(.offer-wizard) .contact-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 28px;
    }

    .contact-section:has(.offer-wizard) .contact-info-card {
        min-height: 96px;
        gap: 12px;
        padding: 18px 16px;
    }

    .contact-section:has(.offer-wizard) .offer-wizard {
        padding: clamp(22px, 3vw, 32px);
        border-radius: 24px;
    }

    .contact-section:has(.offer-wizard) .offer-wizard::after {
        border-radius: inherit;
    }

    .offer-wizard .wizard-button {
        width: auto;
    }

    .offer-wizard .wizard-field-grid,
    .offer-wizard .check-grid,
    .offer-wizard .compact-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offer-wizard .line-field,
    .offer-wizard .line-field input,
    .offer-wizard .line-field select,
    .offer-wizard .line-field textarea,
    .offer-wizard .step-heading > div,
    .offer-wizard .check-card span {
        min-width: 0;
    }

    .offer-wizard .line-field input,
    .offer-wizard .line-field select,
    .offer-wizard .line-field textarea {
        font-size: 16px;
    }

    .offer-wizard .choice-card span,
    .offer-wizard .check-card span,
    .offer-wizard .package-options label {
        overflow-wrap: anywhere;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .offer-wizard .choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offer-wizard .wizard-progress li {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .offer-wizard .step-heading {
        gap: 14px;
        margin-bottom: 26px;
    }
}

@media (max-width: 700px) {
    .contact-section:has(.offer-wizard) {
        width: calc(100% - 24px);
        margin-bottom: 72px;
        padding: 30px 12px 18px;
        border-radius: 22px;
    }

    .contact-section:has(.offer-wizard)::before {
        inset: 6px;
    }

    .contact-section:has(.offer-wizard) .contact-intro {
        margin-bottom: 24px;
    }

    .contact-section:has(.offer-wizard) .contact-intro h2 {
        font-size: clamp(2rem, 8.5vw, 2.75rem);
        line-height: 1.06;
    }

    .contact-section:has(.offer-wizard) .contact-eyebrow {
        gap: 8px;
        margin-bottom: 14px;
        font-size: 9px;
        letter-spacing: 1.8px;
    }

    .contact-section:has(.offer-wizard) .contact-eyebrow::before,
    .contact-section:has(.offer-wizard) .contact-eyebrow::after {
        width: 20px;
    }

    .contact-section:has(.offer-wizard) .contact-lead {
        margin-top: 18px;
        font-size: 13px;
        line-height: 1.65;
    }

    .contact-section:has(.offer-wizard) .contact-info-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 24px;
    }

    .contact-section:has(.offer-wizard) .contact-info-card {
        grid-template-columns: 30px minmax(0, 1fr);
        min-height: 0;
        padding: 15px 14px;
        gap: 12px;
    }

    .contact-section:has(.offer-wizard) .contact-info-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .contact-section:has(.offer-wizard) .contact-info-card small {
        margin-bottom: 6px;
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .contact-section:has(.offer-wizard) .contact-info-card strong {
        font-size: 15px;
        line-height: 1.4;
    }

    .contact-section:has(.offer-wizard) .contact-info-card em {
        margin-top: 5px;
        padding-right: 12px;
        font-size: 11px;
        line-height: 1.45;
    }

    .contact-section:has(.offer-wizard) .offer-wizard {
        padding: 22px 14px 18px;
        border-radius: 18px;
    }

    .offer-wizard .wizard-progress {
        margin-bottom: 22px;
        padding-bottom: 18px;
    }

    .offer-wizard .wizard-progress-copy {
        align-items: flex-start;
        gap: 12px;
    }

    .offer-wizard .wizard-progress-copy span,
    .offer-wizard .wizard-progress-copy strong {
        font-size: 10px;
        letter-spacing: 0.8px;
        line-height: 1.5;
    }

    .offer-wizard .wizard-progress-copy > span {
        flex-shrink: 0;
    }

    .offer-wizard .wizard-progress-copy strong {
        min-width: 0;
        text-align: right;
    }

    .offer-wizard .step-heading {
        margin-bottom: 24px;
    }

    .offer-wizard .step-heading h3 {
        font-size: clamp(1.65rem, 7vw, 2rem);
        line-height: 1.08;
    }

    .offer-wizard .step-heading p {
        font-size: 12px;
        line-height: 1.6;
    }

    .offer-wizard legend,
    .offer-wizard .line-field {
        letter-spacing: 0.8px;
        line-height: 1.5;
    }

    .offer-wizard .choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .offer-wizard .choice-card {
        min-height: 48px;
        padding: 12px 8px;
    }

    .offer-wizard .choice-card span {
        font-size: 10px;
        letter-spacing: 0.5px;
        line-height: 1.45;
    }

    .offer-wizard .choice-card-wide {
        grid-column: 1 / -1;
    }

    .offer-wizard .budget-grid,
    .offer-wizard .check-grid,
    .offer-wizard .compact-check-grid,
    .offer-wizard .wizard-field-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .offer-wizard .wizard-field-grid {
        gap: 20px;
    }

    .offer-wizard .check-card {
        min-height: 56px;
        gap: 10px;
        padding: 12px;
    }

    .offer-wizard .check-card b {
        letter-spacing: 0.5px;
        line-height: 1.45;
    }

    .offer-wizard .conditional-field,
    .offer-wizard .preference-block {
        padding: 16px 12px;
    }

    .offer-wizard .inline-choices label {
        min-height: 44px;
        flex: 1 1 100px;
        padding: 10px 12px;
        letter-spacing: 0.5px;
        line-height: 1.45;
        text-align: center;
    }

    .offer-wizard .priorities-group legend {
        flex-direction: column;
        gap: 6px;
    }

    .offer-wizard .package-options label {
        min-height: 48px;
        padding: 12px;
        line-height: 1.5;
    }

    .offer-wizard .wizard-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 10px;
        margin-top: 24px;
        padding-top: 18px;
    }

    .offer-wizard .wizard-actions > span:empty {
        display: none;
    }

    .offer-wizard .wizard-button {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        align-self: stretch;
        padding: 12px;
        gap: 8px;
        font-size: 11px;
        letter-spacing: 1px;
        line-height: 1.5;
    }

    .offer-wizard .wizard-next {
        white-space: nowrap;
    }

    .offer-wizard .wizard-next:only-of-type {
        grid-column: 1 / -1;
    }

    .offer-wizard .wizard-back {
        justify-content: center;
    }

    .offer-wizard .final-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .offer-wizard .wizard-submit {
        width: 100%;
        min-width: 0;
        flex: auto;
    }

    .offer-wizard .form-finale {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 12px;
    }

    .offer-wizard .form-finale > span {
        width: 30px;
        height: 30px;
    }

    .offer-wizard .form-finale h4 {
        font-size: 22px;
        line-height: 1.1;
    }
}

@media (max-width: 380px) {
    .offer-wizard .wizard-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}
