/* Agency pages reuse the quote form, but retain their native page layout. */
.gb-element-loform1 .wpcf7 form.wpcf7-form {
    display: block;
    margin: 0;
}
.gb-element-loform1 .htn-quote-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
}
.gb-element-loform1 .htn-quote-form__full { grid-column: 1 / -1; }
.gb-element-loform1 .htn-quote-form__field { min-width: 0; }
.gb-element-loform1 .htn-quote-form__field label {
    display: grid;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}
.gb-element-loform1 label > br { display: none; }
.gb-element-loform1 .wpcf7-form-control-wrap { display: block; min-width: 0; }
.gb-element-loform1 .htn-quote-form__field input,
.gb-element-loform1 .htn-quote-form__field textarea { margin: 0; font-size: 16px; }
.gb-element-loform1 .htn-quote-form__action { position: relative; }
.gb-element-loform1 .htn-quote-form__action input[type="submit"] { width: 100%; }
.gb-element-loform1 .wpcf7-spinner { position: absolute; right: 8px; top: 14px; }
.gb-element-loform1 .select2-container { width: 100% !important; }
.gb-element-loform1 .select2-container .select2-selection--single {
    height: 52px;
    border: 1px solid #d5d2cb;
    border-radius: 0;
    background: #fff;
}
.gb-element-loform1 .select2-container .select2-selection__rendered {
    line-height: 50px;
    padding-left: 15px;
    padding-right: 32px;
}
.gb-element-loform1 .select2-container .select2-selection__arrow { height: 50px; }
.gb-element-loform1 .wpcf7-turnstile { margin-top: 20px; }
.gb-element-loform1 .wpcf7-response-output { margin: 18px 0 0; }
@media (max-width: 700px) {
    .gb-element-loform1 .htn-quote-form__grid { grid-template-columns: minmax(0, 1fr); }
}

html:has(body.htn-quote-page),
.htn-quote-page {
    overflow-x: clip;
}

.htn-quote-page .site-content,
.htn-quote-page .content-area,
.htn-quote-page .site-main,
.htn-quote-page .inside-article,
.htn-quote-page .entry-content {
    margin: 0;
    padding: 0;
    max-width: none;
}

.htn-quote-page #page {
    padding-right: 0;
    padding-left: 0;
}

.htn-quote-page .htn-quote-form .wpcf7-form {
    margin: 0;
}

.htn-quote-page .htn-quote-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
}

.htn-quote-page .htn-quote-form__full {
    grid-column: 1 / -1;
}

.htn-quote-page .htn-quote-form__field,
.htn-quote-page .htn-quote-form__action {
    min-width: 0;
}

.htn-quote-page .htn-quote-form__action {
    position: relative;
}

.htn-quote-page .htn-quote-form label {
    display: grid;
    gap: 8px;
    margin: 0;
    color: #1c1d1f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .035em;
}

.htn-quote-page .htn-quote-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.htn-quote-page .htn-quote-form input:not([type="submit"]),
.htn-quote-page .htn-quote-form select,
.htn-quote-page .htn-quote-form textarea {
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 13px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background: #fff;
    color: #151515;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none;
}

.htn-quote-page .htn-quote-form textarea {
    min-height: 76px;
    resize: vertical;
}

.htn-quote-page .htn-quote-form input:focus,
.htn-quote-page .htn-quote-form select:focus,
.htn-quote-page .htn-quote-form textarea:focus {
    outline: 3px solid rgba(229, 27, 35, .35);
    outline-offset: 0;
    border-color: #e51b23;
}

.htn-quote-page .htn-quote-form input[type="submit"] {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 62px;
    margin: 4px 0 0;
    border: 0;
    border-radius: 0;
    background: #e51b23;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

.htn-quote-page .htn-quote-form input[type="submit"]:hover,
.htn-quote-page .htn-quote-form input[type="submit"]:focus-visible {
    background: #be1118;
}

.htn-quote-page .htn-quote-form input::placeholder,
.htn-quote-page .htn-quote-form textarea::placeholder {
    color: #858585;
    opacity: 1;
}

.htn-quote-page .htn-quote-form select {
    cursor: pointer;
}

.htn-quote-page .htn-quote-form .select2-container {
    width: 100% !important;
}

.htn-quote-page .htn-quote-form .select2-container .select2-selection--single {
    height: 56px;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background: #fff;
}

.htn-quote-page .htn-quote-form .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 42px 0 16px;
    color: #151515;
    font-size: 15px;
    font-weight: 600;
    line-height: 56px;
}

.htn-quote-page .htn-quote-form .select2-container .select2-selection--single .select2-selection__arrow {
    width: 40px;
    height: 56px;
}

.htn-service-booking-page .htn-quote-form .wpcf7-checkbox {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.htn-service-booking-page .htn-quote-form .wpcf7-list-item {
    margin: 0;
}

.htn-service-booking-page .htn-quote-form .wpcf7-list-item label {
    display: flex;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #d8d8d8;
    align-items: center;
    gap: 9px;
    color: #383a3c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
}

.htn-service-booking-page .htn-quote-form .wpcf7-list-item input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    accent-color: #e51b23;
}

.htn-quote-page .htn-quote-form .wpcf7-spinner {
    position: absolute;
    top: 50%;
    right: 16px;
    margin: 0;
    transform: translateY(-50%);
}

.htn-quote-page .htn-quote-form .wpcf7-not-valid-tip {
    margin-top: 5px;
    font-size: 12px;
}

.htn-quote-page .htn-quote-form .wpcf7-response-output {
    margin: 18px 0 0;
    padding: 12px 14px;
}

@media (max-width: 700px) {
    .htn-quote-page .gb-element-qhero001 {
        padding-right: 18px;
        padding-left: 18px;
    }

    .htn-quote-page .gb-element-qcard001 {
        padding-right: 18px;
        padding-left: 18px;
    }

    .htn-quote-page .htn-quote-form__grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .htn-quote-page .htn-quote-form__full {
        grid-column: auto;
    }

    .htn-service-booking-page .htn-quote-form .wpcf7-checkbox {
        grid-template-columns: 1fr;
    }
}
