@charset "utf-8";
/* ===========================================================
   Contact Us modal — shared across all HomeOwner Pulse pages.
   Self-contained: does not rely on per-page form styles, so it
   renders consistently whether the page loads style.css or inner.css.
   =========================================================== */

/* ---- Modal shell ---- */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2147483647;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: left;
}

.contact-modal-body {
    position: relative;
    max-width: 560px;
    width: 92%;
    margin: 60px auto;
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

.contact-modal-close {
    position: absolute;
    right: -12px;
    top: -12px;
    width: 34px;
    height: 34px;
    background: #333;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.contact-modal-close:hover {
    background: #000;
}

.contact-modal-heading {
    text-align: center;
    margin: 0 0 8px;
    font-size: 26px;
    color: #111827;
    font-family: 'DM Sans', Arial, Helvetica, sans-serif;
}

.contact-modal-heading span {
    color: #066464;
}

.contact-modal-sub {
    text-align: center;
    margin: 0 0 24px;
    color: #555;
    font-size: 15px;
}

/* ---- Form layout (self-contained) ---- */
#contactForm .frmfield {
    float: none;
    width: 100%;
    margin: 0 0 14px;
}

#contactForm .frmfield.mt_0 {
    margin-top: 0;
}

#contactForm .field-wrapper {
    position: relative;
}

#contactForm .frm_label {
    display: block;
    font-size: 16px;
    line-height: 22px;
    margin: 0 0 6px;
    color: #1f2937;
    font-weight: 600;
}

#contactForm .input_fld {
    display: block;
    width: 100%;
    height: 52px;
    font-size: 16px;
    padding: 0 16px;
    border: 1px solid #cbd2d9;
    border-radius: 6px;
    box-sizing: border-box;
    background: #fff;
    color: #1f2937;
    font-family: inherit;
    outline: none;
}

#contactForm .input_fld:focus {
    border-color: #066464;
}

.contact-textarea {
    resize: vertical;
    min-height: 130px;
    height: auto !important;
    padding: 14px 16px !important;
    line-height: 1.5;
    font-family: inherit;
}

#contactForm .frm_btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 24px auto 0;
    cursor: pointer;
    border: none;
}

@media (max-width: 600px) {
    .contact-modal-body {
        margin: 20px auto;
        padding: 28px 20px;
    }
    .contact-modal-heading {
        font-size: 22px;
    }
}

/* ---- Shared validation + success styles ---- */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.input_fld.error,
input.error,
textarea.error {
    border: 2px solid #e74c3c !important;
    background-color: #fdf2f2 !important;
}

.success-message {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
    animation: slideInUp 0.6s ease-out;
}

.success-message h2 { color: white; margin-bottom: 20px; font-size: 28px; }
.success-message p  { color: white; font-size: 18px; line-height: 1.6; margin-bottom: 15px; }

.success-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: #27ae60;
    animation: bounceIn 0.8s ease-out 0.3s both;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80% { animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); }
    0%   { opacity: 0; transform: scale3d(.3, .3, .3); }
    20%  { transform: scale3d(1.1, 1.1, 1.1); }
    40%  { transform: scale3d(.9, .9, .9); }
    60%  { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
    80%  { transform: scale3d(.97, .97, .97); }
    100% { opacity: 1; transform: scale3d(1, 1, 1); }
}
