/* ══════════════════════════════════════════════════════════
     ICF — Immobilier Contact Form  |  Unified Responsive
     Prefix: icf-
     Breakpoints:
       Desktop  : >= 1200px  → 2-column popup modal (940px)
       iPad/Tab : 768–1199px → 1-column popup modal (600px)
       Mobile   : < 768px   → bottom-sheet slide-up (full width)
       Small    : < 480px   → field grids collapse to 1 column
     ══════════════════════════════════════════════════════════ */

:root {
    --icf-pink: #e91e63;
    --icf-pink-light: #fce4ec;
    --icf-pink-dark: #c2185b;
    --icf-bg: #f3f3f6;
    --icf-card: #ffffff;
    --icf-panel-bg: #f7f7fa;
    --icf-text: #1a1a2e;
    --icf-muted: #7b7f8e;
    --icf-border: #e2e3ea;
    --icf-input-bg: #f8f8fb;
    --icf-radius-xl: 20px;
    --icf-radius-lg: 14px;
    --icf-radius-md: 12px;
    --icf-radius-sm: 10px;
    --icf-shadow-modal: 0 24px 80px rgba(0, 0, 0, .18);
    --icf-shadow-card: 0 2px 12px rgba(0, 0, 0, .06);
    --icf-transition-spring: transform .38s cubic-bezier(.16, 1, .3, 1);
} 

/* ────────────────────────────────────────
         Demo trigger page (remove when embedding)
         ──────────────────────────────────────── */
.icf-demo-page {
    max-width: 900px;
    margin: 80px auto;
    text-align: center;
    padding: 0 24px;
}

.icf-demo-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--icf-text);
}

.icf-demo-page p {
    color: var(--icf-muted);
    margin-bottom: 32px;
    font-size: 15px;
}

.icf-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: var(--icf-pink);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    transition: background .2s, box-shadow .2s, transform .15s;
}

.icf-trigger-btn:hover {
    background: var(--icf-pink-dark);
    box-shadow: 0 8px 28px rgba(233, 30, 99, .25);
}

.icf-trigger-btn:active {
    transform: scale(.97);
}

/* ────────────────────────────────────────
         Overlay backdrop
         ──────────────────────────────────────── */
.icf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 30, .48);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.icf-overlay.icf-overlay--open {
    opacity: 1;
    pointer-events: all;
}

/* ────────────────────────────────────────
         Dialog (the modal card)
         ──────────────────────────────────────── */
.icf-dialog {
    background: var(--icf-card);
    border-radius: var(--icf-radius-xl);
    width: 940px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 340px;
    box-shadow: var(--icf-shadow-modal);
    transform: translateY(24px) scale(.97);
    transition: var(--icf-transition-spring);
    position: relative;
}

.icf-overlay.icf-overlay--open .icf-dialog {
    transform: translateY(0) scale(1);
}

/* ── No-property mode: single-column, narrower dialog ── */
.icf-dialog--no-prop {
    grid-template-columns: 1fr;
    width: min(580px, calc(100vw - 40px));
}

/* ────────────────────────────────────────
         Mobile-only navigation bar
         Hidden on tablet & desktop
         ──────────────────────────────────────── */
.icf-mobile-nav-bar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--icf-card);
    border-bottom: 1px solid var(--icf-border);
    grid-column: 1 / -1;
    flex-shrink: 0;
}

.icf-mobile-nav-bar__back-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--icf-text);
    border-radius: var(--icf-radius-sm);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: background .2s;
}

.icf-mobile-nav-bar__back-btn:active {
    background: var(--icf-pink-light);
}

.icf-mobile-nav-bar__title {
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    line-height: 1.3;
    color: var(--icf-text);
}

/* ────────────────────────────────────────
         Form panel (left / main)
         ──────────────────────────────────────── */
.icf-dialog__form-panel {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.icf-dialog__form-panel::-webkit-scrollbar {
    width: 4px;
}

.icf-dialog__form-panel::-webkit-scrollbar-thumb {
    background: var(--icf-border);
    border-radius: 4px;
}

/* ── Form body (the padded content wrapper) ── */
.icf-form-body {
    padding: 32px 32px 0px;
    flex: 1;
}

.icf-form-body-password {
    padding-bottom: 32px;
}

/* ── Two-step form ── */
.icf-form--step-1 .icf-form-step-2,
.icf-form--step-1 .icf-form-body-password > :not(.icf-legal-disclaimer),
.icf-form--step-1 .icf-mobile-floorplan-section {
    display: none !important;
}

.icf-form--step-1 .icf-form-body:not(.icf-form-body-password) {
    padding-bottom: 0;
}

.icf-form--step-1 .icf-form-body-password {
    padding-bottom: 32px;
}

.icf-form--step-2 .icf-form-step-1,
.icf-form--step-2 .icf-next-btn {
    display: none;
}

.icf-form--step-1 .icf-step1-email {
    margin-bottom: 0;
    padding-bottom: 28px;
}

.icf-back-step-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 15px;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--icf-muted);
    text-decoration: underline;
    cursor: pointer;
    line-height: 1.3;
}

.icf-back-step-btn svg {
    flex-shrink: 0;
}

.icf-back-step-btn:hover {
    color: var(--icf-pink);
}

/* ── Desktop/tablet topbar: heading + close btn ── */
.icf-dialog__topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.icf-dialog__close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--icf-radius-sm);
    border: 1.5px solid var(--icf-border);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icf-muted);
    flex-shrink: 0;
    margin-left: 16px;
    transition: border-color .2s, color .2s, background .2s;
}

.icf-dialog__close-btn:hover {
    border-color: var(--icf-pink);
    color: var(--icf-pink);
    background: var(--icf-pink-light);
}

/* ── Form heading ── */
.icf-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--icf-pink);
    line-height: 1.3;
}

.icf-form-ref-tag {
    font-size: 11px;
    color: var(--icf-muted);
    font-weight: 600;
    letter-spacing: .3px;
    margin-top: 2px;
}

.icf-form-description {
    font-size: 13px;
    color: var(--icf-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ────────────────────────────────────────
         Mobile-only property summary card
         Hidden on tablet & desktop
         ──────────────────────────────────────── */
.icf-mobile-prop-summary {
    display: none;
    background: var(--icf-card);
    overflow: hidden;
    border-bottom: 1px solid var(--icf-border);
    flex-shrink: 0;
}

.icf-mobile-prop-summary__image {
    height: 130px;
    background: linear-gradient(135deg, #b8d4e3, #7ea8be);
    position: relative;
}

.icf-mobile-prop-summary__badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.icf-mobile-prop-summary__body {
    padding: 12px 16px 14px;
}

.icf-mobile-prop-summary__name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--icf-text);
}

.icf-mobile-prop-summary__meta {
    font-size: 12px;
    color: var(--icf-muted);
}

/* ────────────────────────────────────────
         Civility radio group
         ──────────────────────────────────────── */
.icf-civility-group {
    display: none !important;
}

.icf-civility-group input[type="radio"] {
    display: none;
}

.icf-civility-label {
    padding: 9px 20px;
    border: 1.5px solid var(--icf-border);
    border-radius: var(--icf-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--icf-muted);
    user-select: none;
    transition: border-color .2s, color .2s, background .2s, transform .15s;
    white-space: nowrap;
}

.icf-civility-group input[type="radio"]:checked+.icf-civility-label {
    border-color: var(--icf-pink);
    color: var(--icf-pink);
    background: var(--icf-pink-light);
}

.icf-civility-label:hover {
    border-color: #c8c9d0;
}

.icf-civility-label:active {
    transform: scale(.97);
}

/* ────────────────────────────────────────
         Field grid (2-column)
         ──────────────────────────────────────── */
.icf-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* ── Field item ── */
.icf-field-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.icf-field-grid .icf-field-item {
    margin-bottom: 0;
}

/* ── Field label ── */
.icf-field-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--icf-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
}

.icf-label--required::after {
    content: ' *';
    color: #f01d5c;
    font-weight: 700;
}

/* ── Inputs / Selects / Textareas ── */
.icf-field-item input,
.icf-field-item select,
.icf-field-item textarea {
    border: 1.5px solid var(--icf-border);
    border-radius: var(--icf-radius-sm);
    padding: 11px 14px;
    font-family: inherit;
    font-size: 13px;
    background: var(--icf-input-bg);
    color: var(--icf-text);
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.icf-field-item input:focus,
.icf-field-item select:focus,
.icf-field-item textarea:focus {
    border-color: var(--icf-pink);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, .07);
}

.icf-field-item input::placeholder,
.icf-field-item textarea::placeholder {
    color: #bbb;
    font-size: 14px;
}

.icf-field-item textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.icf-field-item select {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ────────────────────────────────────────
         Phone — intl-tel-input theme overrides
         ──────────────────────────────────────── */

/* Propagate brand tokens via iti CSS variables (v23+) */
.icf-field-item .iti {
    width: 100%;
    display: block;
    --iti-hover-color: var(--icf-pink-light);
    --iti-border-color: var(--icf-border);
    --iti-dialcode-color: var(--icf-muted);
    --iti-arrow-color: var(--icf-muted);
    --iti-border-width: 1.5px;
    --iti-dropdown-shadow: 0 10px 36px rgba(0, 0, 0, .13);
    --iti-input-bg: var(--icf-input-bg);
}

/* Tel input — reuses general .icf-field-item input rule;
         iti sets padding-left via inline style, so it wins for left only */
.icf-field-item .iti input[type="tel"] {
    border-radius: var(--icf-radius-sm);
}

.icf-field-item .iti input[type="tel"]:focus {
    border-color: var(--icf-pink);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, .07);
}

.icf-field-item .iti input[type="tel"]::placeholder {
    color: #bbb;
}

/* Flag + dial-code button */
.icf-field-item .iti__selected-country {
    background: var(--icf-input-bg);
    border-radius: var(--icf-radius-sm) 0 0 var(--icf-radius-sm);
    transition: background .2s;
    gap: 5px;
}

.icf-field-item .iti__selected-dial-code {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--icf-muted);
}

.icf-field-item .iti__arrow {
    border-top-color: var(--icf-muted);
    margin-left: 2px;
}

.icf-field-item .iti__arrow--up {
    border-bottom-color: var(--icf-pink);
    border-top-color: transparent;
}

/* Dropdown container */
.icf-field-item .iti__dropdown-content {
    border-radius: var(--icf-radius-md);
    box-shadow: 0 10px 36px rgba(0, 0, 0, .13);
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    border-color: var(--icf-border);
}

/* Search box */
.icf-field-item .iti__search-input {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    background: var(--icf-input-bg);
    color: var(--icf-text);
    outline: none;
    border-bottom: 1.5px solid var(--icf-border) !important;
}

.icf-field-item .iti__search-input:focus {
    background: #fff;
    border-bottom-color: var(--icf-pink) !important;
}

.icf-field-item .iti__search-input::placeholder {
    color: #bbb;
}

/* Country list items */
.icf-field-item .iti__country {
    font-size: 13px;
    padding: 8px 14px;
    font-family: 'DM Sans', sans-serif;
}

.icf-field-item .iti__country.iti__highlight,
.icf-field-item .iti__country:hover {
    background: var(--icf-pink-light);
}

.icf-field-item .iti__country.iti__highlight .iti__country-name,
.icf-field-item .iti__country:hover .iti__country-name {
    color: var(--icf-pink);
}

.icf-field-item .iti__country-name {
    color: var(--icf-text);
}

.icf-field-item .iti__dial-code {
    font-size: 11px;
}

.icf-field-item .iti__divider {
    border-bottom-color: var(--icf-border);
}

/* ────────────────────────────────────────
         Consent toggle switch (square style)
         ──────────────────────────────────────── */
.icf-consent-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 20px;
}

.icf-consent-checkbox {
    display: none;
}

/* The square toggle track */
.icf-toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
}

.icf-toggle-switch__track {
    position: absolute;
    inset: 0;
    background: var(--icf-border);
    border-radius: 3px;
    transition: background .22s ease;
}

.icf-toggle-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    transition: transform .22s cubic-bezier(.16, 1, .3, 1), background .22s ease;
}

/* Checked state */
.icf-consent-checkbox:checked~.icf-toggle-switch .icf-toggle-switch__track {
    background: var(--icf-pink);
}

.icf-consent-checkbox:checked~.icf-toggle-switch .icf-toggle-switch__thumb {
    transform: translateX(18px);
}

/* Focus ring for accessibility */
.icf-consent-checkbox:focus-visible~.icf-toggle-switch .icf-toggle-switch__track {
    outline: 2px solid var(--icf-pink);
    outline-offset: 2px;
}

.icf-consent-label {
    font-size: 12px;
    color: var(--icf-muted);
    cursor: pointer;
    line-height: 1.5;
    user-select: none;
}

/* ────────────────────────────────────────
         Submit button
         ──────────────────────────────────────── */
.icf-submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--icf-pink);
    color: #fff;
    border: none;
    border-radius: var(--icf-radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .15s;
}

.icf-submit-btn:hover {
    background: var(--icf-pink-dark);
    box-shadow: 0 6px 20px rgba(233, 30, 99, .25);
}

.icf-submit-btn:active {
    transform: scale(.98);
}

.icf-submit-btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    animation: icf-spin .7s linear infinite;
}

@keyframes icf-spin {
    to { transform: rotate(360deg); }
}

.icf-submit-btn--loading {
    cursor: not-allowed;
    opacity: .85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.icf-submit-btn--loading .icf-submit-btn__spinner {
    display: block;
}

.icf-submit-btn--loading:hover {
    background: var(--icf-pink);
    box-shadow: none;
    transform: none;
}

/* ────────────────────────────────────────
         Legal disclaimer
         ──────────────────────────────────────── */
.icf-legal-disclaimer {
    font-size: 10px;
    color: #b5b5bf;
    margin-top: 14px;
    line-height: 1.5;
    text-align: center;
}

/* ────────────────────────────────────────
         Mobile-only floor plan section (inside form panel)
         Hidden on tablet & desktop
         ──────────────────────────────────────── */
.icf-mobile-floorplan-section {
    display: none;
    padding: 0 16px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.icf-mobile-floorplan-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--icf-muted);
    margin-bottom: 10px;
}

.icf-mobile-floorplan-card {
    background: var(--icf-card);
    border-radius: var(--icf-radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border: 2px dashed var(--icf-border);
    color: var(--icf-muted);
    font-size: 13px;
    font-weight: 500;
    gap: 10px;
    cursor: pointer;
    transition: border-color .2s;
}

.icf-mobile-floorplan-card:active {
    border-color: var(--icf-pink);
}

/* ════════════════════════════════════════
         Property panel (right side — desktop only)
         ════════════════════════════════════════ */
.icf-dialog__prop-panel {
    background: var(--icf-panel-bg);
    border-left: 1px solid var(--icf-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.icf-dialog__prop-panel::-webkit-scrollbar {
    width: 4px;
}

.icf-dialog__prop-panel::-webkit-scrollbar-thumb {
    background: var(--icf-border);
    border-radius: 4px;
}

/* ── Property header ── */
.icf-prop-header-section {
    padding: 24px 20px 16px;
}

.icf-prop-cover-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #b8d4e3, #7ea8be);
    border-radius: var(--icf-radius-md);
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.icf-prop-cover-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    letter-spacing: .3px;
}

.icf-prop-project-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--icf-text);
}

.icf-prop-geo-location {
    font-size: 12px;
    color: var(--icf-muted);
    margin-bottom: 12px;
}

.icf-prop-asking-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--icf-pink);
    letter-spacing: -.3px;
    line-height: 1.2;
}

.icf-prop-price-prefix {
    font-size: 12px;
    color: var(--icf-muted);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

/* ── Dual-price display (TVA 5,5% + TVA 20%) ── */
.icf-prop-price-label .icf-prop-price-prefix {
    margin-top: 1px;
    margin-bottom: 0;
}

.icf-prop-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    line-height: 1.25;
}

.icf-prop-price-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.icf-prop-price-divider {
    height: 1px;
    background: var(--icf-border);
}

.icf-prop-price-row--full .icf-prop-price-amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--icf-text, #1a1a2e);
    letter-spacing: -.3px;
}

.icf-prop-price-row--reduced .icf-prop-price-amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--icf-pink);
    letter-spacing: -.3px;
}

.icf-prop-price-vat {
    font-size: 12px;
    font-weight: 600;
    color: var(--icf-muted);
    letter-spacing: .1px;
}

/* ── Section divider ── */
.icf-prop-section-divider {
    height: 1px;
    background: var(--icf-border);
    margin: 0 20px;
}

/* ── Property specs list ── */
.icf-prop-specs-section {
    padding: 16px 20px;
    flex: 1;
}

.icf-prop-specs-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--icf-muted);
    margin-bottom: 14px;
}

.icf-prop-specs-section--collapsible .icf-prop-specs-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.icf-prop-specs-section--collapsible .icf-prop-specs-title::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--icf-muted);
    border-bottom: 1.5px solid var(--icf-muted);
    transform: rotate(45deg);
    transition: transform .2s;
    flex-shrink: 0;
    margin-left: 8px;
}

.icf-prop-specs-section--collapsible:not(.icf-prop-specs-section--collapsed) .icf-prop-specs-title::after {
    transform: rotate(-135deg);
}

.icf-prop-specs-section--collapsed .icf-prop-specs-title {
    margin-bottom: 0;
}

.icf-prop-specs-section--collapsed .icf-prop-specs-body {
    display: none;
}

.icf-spec-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ebebf0;
    font-size: 13px;
}

.icf-spec-list-row:last-child {
    border-bottom: none;
}

.icf-spec-list-key {
    color: var(--icf-muted);
}

.icf-spec-list-value {
    font-weight: 700;
    color: var(--icf-text);
}

/* ── Floor plan preview ── */
.icf-floorplan-section {
    padding: 20px 0px;
}

.icf-floorplan-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--icf-muted);
    margin-bottom: 10px;
}

.icf-floorplan-preview-box {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    border: 2px dashed var(--icf-border);
    border-radius: var(--icf-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--icf-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.icf-floorplan-preview-box:hover { 
}

.icf-floorplan-preview-box svg {
    opacity: .35;
}

/* ════════════════════════════════════════
         RESPONSIVE — iPad / Tablet  768px–1199px
         Single-column centered modal
         ════════════════════════════════════════ */
@media (max-width: 1199px) {
    .icf-dialog {
        grid-template-columns: 1fr;
        width: min(600px, calc(100vw - 40px));
    }

    .icf-dialog__prop-panel {
        display: none;
    }

    .icf-form-body {
        padding: 28px 28px 32px;
    }
}

/* iPad portrait: keep 2-column fields but slightly smaller font */
@media (min-width: 768px) and (max-width: 1199px) {
    .icf-form-title {
        font-size: 20px;
    }

    .icf-field-item input,
    .icf-field-item select,
    .icf-field-item textarea {
        font-size: 14px;
        padding: 12px 14px;
    }

    .icf-field-item .iti input[type="tel"] {
        font-size: 14px;
        padding-top: 12px;
        padding-right: 14px;
        padding-bottom: 12px;
    }

    .icf-submit-btn {
        font-size: 15px;
        padding: 15px;
    }
}

/* ════════════════════════════════════════
         RESPONSIVE — Mobile  < 768px
         Bottom-sheet slide-up, full width
         ════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Overlay is just backdrop — no scroll here */
    .icf-overlay {
        display: block;
        overflow: hidden;
    }

    /* Dialog IS the scroll container — fixed height, fixed positioning,
       overflow:scroll. This is the most bulletproof iOS pattern. */
    .icf-dialog {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        transform: none;
        display: block;
        grid-template-columns: none;
        grid-template-rows: none;
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        background: var(--icf-card);
    }

    .icf-overlay.icf-overlay--open .icf-dialog {
        transform: none;
    }

    /* Drag handle hint at the top of the sheet */
    .icf-dialog::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: var(--icf-border);
        border-radius: 2px;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    /* Show mobile nav bar — sticky so close button stays visible while scrolling */
    .icf-mobile-nav-bar {
        display: flex;
        padding-top: 20px;
        position: sticky;
        top: 0;
        z-index: 20;
        /* extra space for drag handle */
    }

    /* Loading screen: constrain to viewport so spinner is visible at top */
    .icf-loading-screen {
        bottom: auto;
        height: 100vh;
        height: var(--icf-vh, 100vh);
        max-height: var(--icf-vh, 100vh);
    }

    /* Show mobile property card */
    .icf-mobile-prop-summary {
        display: block;
    }

    /* Form panel: simple block, no inner scroll on mobile */
    .icf-dialog__form-panel {
        display: block;
        flex: none;
        min-height: 0;
        max-height: none;
        height: auto;
        overflow: visible;
        -webkit-overflow-scrolling: auto;
        touch-action: auto;
    }

    /* Narrower form body padding */
    .icf-form-body {
        padding: 20px 16px 24px;
    }

    .icf-form--step-1 .icf-form-body:not(.icf-form-body-password) {
        padding-bottom: 0;
    }

    .icf-form--step-1 .icf-form-body-password {
        padding-bottom: 24px;
    }

    /* Hide desktop topbar (close btn + heading) */
    .icf-dialog__topbar {
        display: none;
    }

    /* Show mobile floor plan section */
    .icf-mobile-floorplan-section {
        display: block;
    }

    /* Full-width civility labels */
    .icf-civility-label {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
    }

    /* Larger touch targets */
    .icf-field-item input,
    .icf-field-item select,
    .icf-field-item textarea {
        font-size: 14px;
        /* prevents iOS auto-zoom */
        padding: 13px 14px;
    }

    .icf-field-item .iti input[type="tel"] {
        font-size: 16px;
        /* prevents iOS auto-zoom */
        padding-top: 13px;
        padding-right: 14px;
        padding-bottom: 13px;
    }

    .icf-submit-btn {
        padding: 16px;
        font-size: 15px;
    }

    .icf-legal-disclaimer {
        font-size: 11px;
    }

    .icf-form-description {
        margin-bottom: 20px;
    }
}

/* ════════════════════════════════════════
         RESPONSIVE — Small mobile  < 480px
         Field grids stack to single column
         ════════════════════════════════════════ */
@media (max-width: 479px) {
    .icf-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .icf-field-grid .icf-field-item {
        margin-bottom: 12px;
    }

    .icf-field-grid--phone-slot {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .icf-field-grid--phone-slot .icf-field-item {
        margin-bottom: 0;
    }

    .icf-civility-label {
        font-size: 12px;
    }
}

/* ════════════════════════════════════════
         Slide-up animation (mobile prop card)
         ════════════════════════════════════════ */
@keyframes icf-slide-up-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ════════════════════════════════════════
         City autocomplete
         ════════════════════════════════════════ */
.icf-city-wrapper {
    position: relative;
}

.icf-city-input-wrap {
    position: relative;
}

/* Spinner inside input */
.icf-city-input-spin {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid var(--icf-pink-light);
    border-top-color: var(--icf-pink);
    border-radius: 50%;
    animation: icf-city-spin .7s linear infinite;
    display: none;
    pointer-events: none;
}

.icf-city-input-spin--active {
    display: block;
}

@keyframes icf-city-spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Dropdown */
.icf-city-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--icf-border);
    border-radius: var(--icf-radius-md);
    box-shadow: 0 10px 36px rgba(0, 0, 0, .13);
    z-index: 200;
    overflow: hidden;
    display: none;
    max-height: 230px;
    overflow-y: auto;
}

.icf-city-dropdown::-webkit-scrollbar {
    width: 3px;
}

.icf-city-dropdown::-webkit-scrollbar-thumb {
    background: var(--icf-border);
    border-radius: 3px;
}

.icf-city-dropdown--open {
    display: block;
}

.icf-city-option {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #f0f0f5;
    transition: background .13s;
}

.icf-city-option:last-child {
    border-bottom: none;
}

.icf-city-option:hover,
.icf-city-option--focused {
    background: var(--icf-pink-light);
}

.icf-city-option__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--icf-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icf-city-option:hover .icf-city-option__name,
.icf-city-option--focused .icf-city-option__name {
    color: var(--icf-pink);
}

.icf-city-option__meta {
    font-size: 11px;
    color: var(--icf-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.icf-city-no-result {
    padding: 14px;
    font-size: 13px;
    color: var(--icf-muted);
    text-align: center;
}

/* ════════════════════════════════════════
         Loading screen (shown on modal open)
         ════════════════════════════════════════ */
.icf-loading-screen {
    position: absolute;
    inset: 0;
    background: var(--icf-card);
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
}

.icf-loading-screen.icf-loading--active {
    animation: icf-loading-lifecycle 2.5s cubic-bezier(.4, 0, .2, 1) forwards;
    pointer-events: all;
}

@keyframes icf-loading-lifecycle {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* ── Spinner ring + icon ── */
.icf-loading-spinner-wrap {
    position: relative;
    width: 80px;
    height: 80px;
}

.icf-loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3.5px solid var(--icf-pink-light);
    border-top-color: var(--icf-pink);
    border-right-color: var(--icf-pink);
    animation: icf-spin .9s linear infinite;
}

.icf-loading-ring-bg {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--icf-pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icf-pink);
}

@keyframes icf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Bouncing dots ── */
.icf-loading-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.icf-loading-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--icf-pink);
    animation: icf-dot-bounce .9s ease-in-out infinite;
}

.icf-loading-dots span:nth-child(2) {
    animation-delay: .18s;
}

.icf-loading-dots span:nth-child(3) {
    animation-delay: .36s;
}

@keyframes icf-dot-bounce {

    0%,
    80%,
    100% {
        transform: scale(.65);
        opacity: .35;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Label ── */
.icf-loading-text {
    font-size: 13px;
    color: var(--icf-muted);
    font-weight: 500;
    letter-spacing: .4px;
    margin-top: -4px;
}

/* ════════════════════════════════════════
         Password fields (revealed on checkbox)
         ════════════════════════════════════════ */
.icf-password-fields {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s cubic-bezier(.16, 1, .3, 1),
        opacity .3s ease,
        margin-top .35s cubic-bezier(.16, 1, .3, 1);
    opacity: 0;
    margin-top: 0;
}

.icf-password-fields.icf-password-fields--open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 14px;
    margin-bottom: 14px;
}

.icf-password-fields__inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.icf-password-field-wrap {
    position: relative;
}

.icf-password-field-wrap .icf-field-label {
    display: block;
    margin-bottom: 4px;
}

.icf-password-field-wrap input[type="password"],
.icf-password-field-wrap input[type="text"] {
    border: 1.5px solid var(--icf-border);
    border-radius: var(--icf-radius-sm);
    padding: 11px 42px 11px 14px;
    font-family: inherit;
    font-size: 13px;
    background: var(--icf-input-bg);
    color: var(--icf-text);
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.icf-field-item .iti.iti--allow-dropdown{
    width: 100%;
    float: unset;
    margin-right: 0;
}
.icf-password-field-wrap input:focus {
    border-color: var(--icf-pink);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, .07);
}

.icf-password-field-wrap input::placeholder {
    color: #bbb;
}

.icf-pw-toggle {
    position: absolute;
    right: 12px;
    bottom: 11px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--icf-muted);
    display: flex;
    align-items: center;
    transition: color .2s;
}

.icf-pw-toggle:hover {
    color: var(--icf-pink);
}

/* ══════════════════════════════════════════════
   In-form notification
   ══════════════════════════════════════════════ */
#icfNotifSlot {
    overflow: hidden;
}

.icf-notif {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 16px;
    animation: icfNotifIn .22s cubic-bezier(.22,.68,0,1.2) both;
    position: relative;
}

.icf-notif__icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.icf-notif__body {
    flex: 1;
    font-weight: 500;
}

.icf-notif__close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: .55;
    line-height: 1;
    color: inherit;
    margin-top: 1px;
    transition: opacity .15s;
}

.icf-notif__close:hover {
    opacity: 1;
}

/* — Error — */
.icf-notif--error {
    background: #fff1f4;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

/* — Warning — */
.icf-notif--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* — Success — */
.icf-notif--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

@keyframes icfNotifIn {
    from { opacity: 0; transform: translateY(-10px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1);   }
}

@keyframes icfNotifOut {
    from { opacity: 1; transform: translateY(0)      scale(1);   max-height: 80px; margin-bottom: 16px; }
    to   { opacity: 0; transform: translateY(-6px)   scale(.97); max-height: 0;    margin-bottom: 0;   }
}


/* ── Floor plan thumbnail gallery ── */
.icf-floorplan-gallery {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.icf-floorplan-thumb {
    width: calc(25% - 5px);
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .15s;
}

.icf-floorplan-thumb:hover {
    border-color: var(--icf-pink);
}

.icf-floorplan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {

    .icf-password-field-wrap input[type="password"],
    .icf-password-field-wrap input[type="text"] {
        font-size: 14px;
        padding: 13px 42px 13px 14px;
    }

    .icf-pw-toggle {
        bottom: 13px;
    }

    #icf-field-phone{
        font-size: 14px;
    }
}