/* ============================================
   INQUIRY FORM - MODERN COMPACT DESIGN
   ============================================
   Shared by the property page inquiry form (agent-form.php) and the
   agent/agency/author "Contact us" modal (template-parts/realtors/contact-form.php)
   so both forms render with the same look. Split out of
   single-listing-sections-design.css (which is property-page-only) so it can
   also be enqueued on agent/agency/author pages without pulling in that
   file's property-page-specific Elementor section rules. */

/* Form Container — palette/font matched to the property listing cards
   (css/property-listing-card.css --fpc-* tokens) for site-wide consistency. */
.property-form-wrap {
    font-family: Helvetica, Arial, sans-serif;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(122, 122, 122, .2);
    padding: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-form-wrap:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Inside the agent/agency/author "Contact us" modal (#realtor-form) only:
   its modal-content already supplies a bordered/padded white surface, so the
   card's own border/shadow/padding on top of that just doubles up. Every
   other placement — the property page's own mobile modal, lightbox panel,
   sidebar "Request Info" tab, gallery above-image overlay — keeps the full
   card look untouched. */
#realtor-form .property-form-wrap {
    border: none;
    box-shadow: none;
    padding: 0 !important;
}

#realtor-form .property-form-wrap:hover {
    box-shadow: none;
}

/* Agent Details Section */
/* All selectors below are scoped under .property-form-wrap: agent/agency
   single pages reuse bare class names like .agent-image/.agent-information
   for their own large profile-photo header outside this card, and these
   rules must not bleed onto that unrelated markup. */

/* The agent's name is the click target to their profile — a real, visible link,
   not the whole header stretched into an invisible hit target. */
.property-form-wrap .agent-details {
    position: relative;
    margin-bottom: 16px;
}

.property-form-wrap .agent-details .d-flex {
    width: 100% !important;
}

/* Agency badge: small, overlapping the bottom-right corner of the agent's avatar.
   JS (in agent-form.php) moves .hz-agency-badge into .agent-image so it positions
   relative to the avatar itself. */
.property-form-wrap .agent-image {
    position: relative;
}

/* Width forced here too (not just height): the agent/agency/author modal's
   <img> ships width="50" while the property form's ships width="70"/"80"
   (varies by which parent-theme helper built it) — without an explicit
   width both would keep their own attribute and crop to a different
   rectangle via object-fit, so every instance ends up a different shape. */
.property-form-wrap .agent-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Verified badge (top-right of the avatar): the parent theme's own
   .agent-verified-icon has no z-index, so it could end up underneath the
   whole-header click overlay (z-index:1) depending on paint order. Realigned
   for the 60px circular avatar and given the same z-index as the agency
   badge so it always stays visible and isn't fought over by the overlay. */
.property-form-wrap .agent-image .agent-verified-icon {
    top: -4px;
    right: -4px;
    background: var(--fpc-black, #000000);
    color: #ffffff;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.property-form-wrap .hz-agency-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(122, 122, 122, .2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 2;
}

.property-form-wrap .hz-agency-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-form-wrap .hz-agency-badge-initials {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    color: var(--fpc-black, #000000);
}

.property-form-wrap .agent-information {
    font-size: 13px;
    width: 100%;
}

.property-form-wrap .agent-information .agent-name {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--fpc-black, #000000);
    display: flex;
    align-items: start !important;
    gap: 8px !important;
    flex-direction: row;
}

.property-form-wrap .agent-information .agent-name span {
    margin-left: 0 !important;
}

.property-form-wrap .agent-information .agent-name i {
    font-size: 12px;
    color: var(--fpc-500, #7A7A7A);
}

.property-form-wrap .agent-information .agent-name a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}

.property-form-wrap .agent-information .agent-name a:hover {
    color: var(--fpc-black, #000000);
    text-decoration: underline;
}

/* "Agent at {agency}" subtitle line, moved by JS next to the agent's name.
   Sits above the invisible whole-header overlay (z-index 2, same as the badge) so it
   keeps its own click target to the agency page instead of the overlay intercepting it. */
.property-form-wrap .hz-agency-subtitle {
    margin-top: 2px;
    list-style: none;
    position: relative;
    z-index: 2;
}

.property-form-wrap .hz-agency-subtitle a {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12.5px;
    color: var(--fpc-700, #54595F);
    text-decoration: none;
}

.property-form-wrap .hz-agency-subtitle a:hover {
    color: var(--fpc-black, #000000);
    text-decoration: underline;
}

/* Form Groups */
.property-form .form-group {
    margin-bottom: 10px !important;
}

/* Input Fields */
.property-form input.form-control,
.property-form textarea.form-control,
.property-form select.form-control {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(122, 122, 122, .2) !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: var(--fpc-black, #000000) !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.property-form input.form-control:focus,
.property-form textarea.form-control:focus,
.property-form select.form-control:focus {
    border-color: var(--fpc-black, #000000) !important;
    box-shadow: 0 0 0 3px rgba(84, 133, 214, .15) !important;
    outline: none !important;
}

/* Placeholder Text */
.property-form input::placeholder,
.property-form textarea::placeholder {
    color: var(--fpc-500, #7A7A7A) !important;
    font-size: 13px !important;
    font-family: 'Azeret Mono', 'SFMono-Regular', Consolas, monospace !important;
}

/* Textarea */
.property-form textarea.form-control {
    min-height: 90px !important;
    resize: vertical;
}

/* Dropdown/Select Styling */
.property-form .bootstrap-select .dropdown-toggle {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 13px !important;
    border: 1px solid rgba(122, 122, 122, .2) !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    height: auto !important;
}

.property-form .bootstrap-select .dropdown-toggle:focus {
    border-color: var(--fpc-black, #000000) !important;
    box-shadow: 0 0 0 3px rgba(84, 133, 214, .15) !important;
}

/* PEZA / BOI Requirement selects: no padding */
.property-form .bootstrap-select:has(> select.hz-select-compact) .dropdown-toggle {
    padding: 0 8px !important;
}

.property-form .bootstrap-select .filter-option-inner-inner {
    font-size: 13px !important;
    color: var(--fpc-black, #000000) !important;
}

.property-form .bootstrap-select.bs-placeholder .filter-option-inner-inner {
    color: var(--fpc-500, #7A7A7A) !important;
}

/* Dropdown Menu */
.property-form .bootstrap-select .dropdown-menu {
    border: 1px solid rgba(122, 122, 122, .2) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    font-size: 13px !important;
    font-family: Helvetica, Arial, sans-serif !important;
}

.property-form .bootstrap-select .dropdown-menu li a {
    font-size: 13px !important;
    padding: 8px 12px !important;
}

/* GDPR Checkbox */
.property-form .hz-no-gdpr-checkbox {
    font-size: 12px !important;
    color: var(--fpc-700, #54595F) !important;
    line-height: 1.5;
}

.property-form .gdpr-text-wrap {
    font-size: 12px !important;
}

.property-form .gdpr-text-wrap a {
    color: var(--fpc-black, #000000);
    text-decoration: none;
}

.property-form .gdpr-text-wrap a:hover {
    text-decoration: underline;
}

/* Submit Button */
.property-form .houzez-ele-button {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    background: var(--fpc-black, #000000) !important;
    border: none !important;
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 6px rgba(84, 133, 214, 0.25) !important;
}

.property-form .houzez-ele-button:hover {
    background: var(--fpc-700, #54595F) !important;
    color: var(--fpc-black, #000000) !important;
    box-shadow: 0 4px 12px rgba(84, 133, 214, 0.35) !important;
    transform: translateY(-2px);
}

.property-form .houzez-ele-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Loading Spinner */
.property-form .spinner-border-sm {
    width: 14px;
    height: 14px;
}

/* Form Messages */
.property-form .form_messages {
    font-size: 13px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 6px;
}
