/*
Theme Name: URM
Theme URI: https://unitedresidentialmanagement.com/
Author: Ash
Version: 1.0.0
*/

@media (max-width: 768px) {
    .footer-grid nav {
        padding-top: 0rem;
    }
}

/* ---------- Contact Form 7 ---------- */
.contact-form-panel .wpcf7 .hidden-fields-container {
    display: none;
}

.contact-page-form .wpcf7-form-control-wrap {
    display: block;
    position: relative;
}

.contact-page-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: #f2a49a;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.contact-page-form.enquiry-form .wpcf7-not-valid {
    border-color: #e07a6e;
}

/* Phone country code picker (International Telephone Input) */
.contact-page-form {
    --iti-border-color: #3e554a;
    --iti-country-selector-bg: #203a2f;
    --iti-hover-color: rgba(195, 160, 103, .14);
    --iti-icon-color: #c3a067;
    --iti-spacer-horizontal: 14px;
}

.contact-page-form .iti {
    display: block;
    width: 100%;
    margin-top: 7px;
}

.contact-page-form .iti__selected-country {
    color: #eef2ee;
    font-size: clamp(14px, .95vw, 18px);
    cursor: pointer;
}

.contact-page-form .iti__selected-country:focus-visible {
    outline: 1px solid #c3a067;
    outline-offset: -1px;
}

.contact-page-form .iti__country-selector {
    border-radius: 0;
    color: #eef2ee;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.contact-page-form.enquiry-form .iti__search-input {
    margin: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
}

.contact-page-form .iti__dial-code {
    color: #a8b5ad;
}

.contact-page-form .iti__country.iti__highlight {
    color: #fff;
}

/* Fullscreen picker on small screens is mounted on <body>, outside the form. */
.iti--fullscreen-popup {
    --iti-border-color: #3e554a;
    --iti-country-selector-bg: #203a2f;
    --iti-hover-color: rgba(195, 160, 103, .14);
    --iti-icon-color: #c3a067;
    color: #eef2ee;
    font-family: 'Instrument Sans', Arial, sans-serif;
}

.iti--fullscreen-popup .iti__search-input {
    background: transparent;
    color: #eef2ee;
}

.iti--fullscreen-popup .iti__dial-code {
    color: #a8b5ad;
}

/* Form preloader + locked submit */
.contact-page-form.enquiry-form {
    position: relative;
}

/* Replaced by the overlay preloader and popup below. */
.contact-page-form .wpcf7-spinner,
.contact-page-form .wpcf7-response-output {
    display: none !important;
}

.contact-page-form::after {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: 2;
    display: grid;
    background: rgba(16, 47, 39, .72) no-repeat center / 46px 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23c3a067' stroke-opacity='.25' stroke-width='3'/%3E%3Cpath d='M25 5a20 20 0 0 1 20 20' fill='none' stroke='%23c3a067' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.contact-page-form.is-sending::after {
    opacity: 1;
    visibility: visible;
    cursor: wait;
}

.contact-page-form.is-sending .button:disabled {
    cursor: wait;
}

/* Submission result popup (uses the theme dialog) */
.detail-dialog--notice:not(.detail-dialog--thanks) {
    width: min(520px, calc(100% - 36px));
    text-align: center;
}

.form-notice-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 24px;
    line-height: 1;
}

.form-notice--success .form-notice-icon::before {
    content: "✓";
}

.form-notice--error .form-notice-icon {
    border-color: #b4483c;
    color: #b4483c;
}

.form-notice--error .form-notice-icon::before {
    content: "!";
}

.detail-dialog--notice:not(.detail-dialog--thanks) h2 {
    padding-right: 0;
    margin-bottom: 14px;
}

.detail-dialog--notice:not(.detail-dialog--thanks) .form-notice-message {
    margin: 0 auto;
    max-width: 38ch;
}

@media (prefers-reduced-motion: reduce) {
    .contact-page-form::after {
        transition: none;
    }
}


.why-advantage img {
    flex: 0 0 66px;
    width: 66px;
    height: 70px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1100px) {
    .why-advantage img {
        flex-basis: 46px;
        width: 46px;
        height: 52px;
    }
}
