.county88a-contact-form {
    background: linear-gradient(180deg, rgb(8 120 63) 0%, #857d80e3 100%);
    padding: 30px;
    border-radius: 24px;
    color: #3f3f46;
    box-shadow: 0 20px 50px rgba(124, 45, 18, 0.15);
    border: 1px solid #f3e8d7;
    position: sticky;
    top: 100px;
    overflow: visible;
    width: 100%;
    border: 1px solid linear-gradient(180deg, #887129 0%, #000000 100%);
}

.county88a-contact-form::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.2), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.county88a-contact-address {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.county88a-form {
    position: relative;
    z-index: 2;
}

.county88a-input-group {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
    isolation: isolate;
}

.county88a-textarea {
    min-height: 100px;
    padding-top: 14px;
    resize: none;
}

/* FIX: was ".county88a-input-group .county88a-has-icon" (descendant
   selector) which never matched, since both classes sit on the SAME
   element in the markup rather than one nested inside the other.
   Changed to a compound selector so the spacing actually applies. */
.county88a-input-group.county88a-has-icon {
    margin-bottom: 18px !important;
}

.county88a-input {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #e7d3be;
    background: #fff !important;
    color: #3f3f46;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    padding: 14px 16px;
}

.county88a-input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
}

.county88a-has-icon .county88a-input {
    padding-left: 44px;
    border-radius: 12px;
}

.county88a-input-icon {
    position: absolute;
    top: 40%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 15px;
    color: #327b55;
    pointer-events: none;
    z-index: 3;
    line-height: 1;
    width: 16px;
    text-align: center;
}

.county88a-input-icons {
    position: absolute;
    top: 20%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 15px;
    color: #327b55;
    pointer-events: none;
    z-index: 3;
    line-height: 1;
    width: 16px;
    text-align: center;
}

.county88a-email-group .county88a-input-icon,
.county88a-email-group .fa-envelope {
    left: 14px !important;
    right: auto !important;
}

.county88a-phone-group {
    z-index: 1;
}

.county88a-phone-group .iti {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.county88a-phone-group .iti input,
.county88a-phone-group input[type="tel"] {
    width: 100% !important;
    height: 52px;
    padding: 14px 16px 14px 92px !important;
    border-radius: 12px !important;
    border: 1px solid #c0800a;
    background: #fff;
    color: #000;
    font-size: 15px;
    outline: none;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.county88a-phone-group .iti input:focus,
.county88a-phone-group input[type="tel"]:focus {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2) !important;
}

.county88a-phone-group .iti input:focus,
.county88a-phone-group input[type="tel"]:focus {
    border-color: #fca311;
    box-shadow: 0 0 0 4px rgba(252, 163, 17, 0.22);
}

.county88a-phone-group .iti__flag-container {
    z-index: 2;
}

.iti--allow-dropdown .iti__selected-flag {
    width: 78px;
    padding: 0 12px 0 14px;
    border-radius: 12px 0 0 12px;
    background: transparent;
    border-right: 1px solid rgba(159, 129, 20, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.iti__selected-dial-code {
    color: #555;
    font-size: 14px;
    font-weight: 500;
    margin-left: 6px;
}

.iti__arrow {
    border-top-color: #c0800a;
    margin-left: 6px;
}

.iti__country-list {
    width: 290px;
    max-width: 100%;
    margin-top: 10px;
    font-size: 14px;
    border-radius: 8px !important;
    background: #fff !important;
    overflow-x: hidden;
}

.iti__country-list {
    z-index: 9999;
    max-height: 200px;
    overflow-y: auto;
}

.iti__country-name,
.iti__dial-code {
    color: #333 !important;
}

.iti__flag-box .iti__dial-code {
    color: #fff !important;
}

.iti__search-input {
    display: none !important;
}

.county88a-btn-submit {
    width: 100%;
    min-height: 52px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.county88a-btn-submit:hover {
    background: linear-gradient(180deg, #0e6a3b 0%, #338e5f 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 32, 63, 0.45);
}

@media (max-width: 991px) {
    .county88a-contact-form {
        position: relative;
        top: 0;
        padding: 24px;
        border-radius: 20px;
    }
}

@media (max-width: 767px) {
    .county88a-contact-form {
        padding: 22px 18px;
        border-radius: 18px;
    }
    .county88a-input {
        height: 48px;
        font-size: 14px;
    }
    .county88a-has-icon .county88a-input {
        padding-left: 40px;
    }
    .county88a-input-icon {
        left: 12px;
        font-size: 14px;
    }
    .county88a-phone-group .iti input,
    .county88a-phone-group input[type="tel"] {
        height: 48px;
        padding-left: 82px !important;
        font-size: 14px;
    }
    .iti--allow-dropdown .iti__selected-flag {
        width: 68px;
        padding: 0 8px 0 10px;
    }
}

@media (max-width: 575px) {
    .county88a-contact-form {
        padding: 20px 14px;
        border-radius: 16px;
    }
    .county88a-input {
        height: 46px;
        font-size: 13px;
    }
    .county88a-has-icon .county88a-input {
        padding-left: 38px;
    }
    .county88a-input-icon {
        left: 11px;
        font-size: 13px;
    }
    .county88a-phone-group .iti input,
    .county88a-phone-group input[type="tel"] {
        height: 46px;
        padding-left: 78px !important;
        font-size: 13px;
    }
    .iti--allow-dropdown .iti__selected-flag {
        width: 64px;
        padding: 0 6px 0 8px;
    }
}

@media screen and (max-width: 767px) {
    .county88a-input,
    .county88a-phone-group input,
    .county88a-phone-group .iti input,
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Extra iOS stability */

.county88a-input,
.county88a-phone-group input {
    -webkit-text-size-adjust: 100%;
    -webkit-appearance: none;
    appearance: none;
}

/* Fix dropdown overlap issue (safe add) */

.iti__country-list {
    z-index: 99999 !important;
}