/* Phone + country dropdown: structure from otp-contact-form; colors per DESIGN-GUIDE.md */

/* Demo form (hero + modal): vertical rhythm via flex gap on form.property-import-demo-form-fields */

.property-import-phone .phone-input-container {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 0;
}

.property-import-phone .country-code-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.property-import-phone .country-selector-button {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    min-width: 140px;
    padding: 10px 16px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 8px;
    background: #0f1b24;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.property-import-phone .country-selector-button:hover {
    border-color: #39ff14;
}

.property-import-phone .country-selector-button .flag {
    font-size: 20px;
    line-height: 1;
}

.property-import-phone .country-selector-button .code {
    flex: 1;
    text-align: left;
}

.property-import-phone .country-selector-button .arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #94a3b8;
    transition: transform 0.3s ease;
}

.property-import-phone .country-selector-button.active .arrow {
    transform: rotate(180deg);
}

.property-import-phone .country-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 320px;
    max-height: 300px;
    background: #0f172a;
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.property-import-phone .country-dropdown-menu.active {
    display: flex !important;
}

.property-import-phone .country-search-box {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.property-import-phone .country-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 8px;
    background: #0f1b24;
    color: #94a3b8;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.property-import-phone .country-search-input:focus {
    border-color: #39ff14;
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
}

.property-import-phone .country-list {
    overflow-y: auto;
    max-height: 240px;
    padding: 8px;
}

.property-import-phone .country-list::-webkit-scrollbar {
    width: 8px;
}

.property-import-phone .country-list::-webkit-scrollbar-track {
    background: #0f1b24;
    border-radius: 4px;
}

.property-import-phone .country-list::-webkit-scrollbar-thumb {
    background: #39ff14;
    border-radius: 4px;
}

.property-import-phone .country-list::-webkit-scrollbar-thumb:hover {
    background: #2ecc11;
}

.property-import-phone .country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.property-import-phone .country-item:hover {
    background: rgba(57, 255, 20, 0.08);
}

.property-import-phone .country-item.selected {
    background: rgba(57, 255, 20, 0.15);
    border: 1px solid #39ff14;
}

.property-import-phone .country-item .flag {
    font-size: 24px;
    line-height: 1;
    width: 32px;
    text-align: center;
}

.property-import-phone .country-item .name {
    flex: 1;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
}

.property-import-phone .country-item .code {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
}

.property-import-phone .phone-input-container input[type="text"] {
    flex: 1;
    margin: 0;
}

.property-import-demo-form-fields .property-import-phone input[name="lead_phone"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 8px;
    background: #0f1b24;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

.property-import-demo-form-fields .property-import-phone input[name="lead_phone"]::placeholder {
    color: #64748b;
}

.property-import-demo-form-fields .property-import-phone input[name="lead_phone"]:focus {
    border-color: #39ff14;
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
}

form.property-import-demo-form-fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* FAQ accordion — DESIGN-GUIDE: #0F1B24, border-[#39FF14]/20, smooth height */
.property-import-faq {
    font-family: 'Inter', sans-serif;
}

.property-import-faq__item {
    border-radius: 12px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    background: #0f1b24;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.property-import-faq__item:hover {
    border-color: rgba(57, 255, 20, 0.35);
}

.property-import-faq__item.is-open {
    border-color: rgba(57, 255, 20, 0.4);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.property-import-faq__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: color 0.2s ease;
}

.property-import-faq__trigger:hover {
    color: #f8fafc;
}

.property-import-faq__trigger:focus-visible {
    outline: 2px solid #39ff14;
    outline-offset: 2px;
}

.property-import-faq__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(57, 255, 20, 0.1);
    color: #39ff14;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-import-faq__item.is-open .property-import-faq__icon {
    transform: rotate(45deg);
}

.property-import-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-import-faq__item.is-open .property-import-faq__panel {
    grid-template-rows: 1fr;
}

.property-import-faq__panel-inner {
    min-height: 0;
    overflow: hidden;
}

.property-import-faq__answer {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
    line-height: 1.6;
    color: #94a3b8;
    padding-top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .property-import-faq__panel,
    .property-import-faq__icon,
    .property-import-faq__item {
        transition: none;
    }
}

/* Demo modal — above header (z-9999) + WP admin bar (~99999), centered card, smooth open/close */
.property-import-demo-modal {
    position: fixed;
    inset: 0;
    z-index: 100010;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.property-import-demo-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Full-viewport dark overlay behind the dialog (outer screen) */
.property-import-demo-modal__backdrop {
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(10, 18, 20, 0.55) 0%, transparent 55%),
        rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Let clicks pass through the centering wrapper to the backdrop (close on overlay tap) */
.property-import-demo-modal__align {
    pointer-events: none;
}

.property-import-demo-modal__dialog {
    pointer-events: auto;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition:
        transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.28s ease;
}

.property-import-demo-modal.is-open .property-import-demo-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .property-import-demo-modal,
    .property-import-demo-modal__backdrop,
    .property-import-demo-modal__dialog {
        transition-duration: 0.01ms;
    }

    .property-import-demo-modal__dialog {
        transform: none;
    }

    .property-import-demo-modal.is-open .property-import-demo-modal__dialog {
        transform: none;
    }
}

/* Hero — premium landing (Automatic Property Import) */
.property-import-hero__title-accent {
    background: linear-gradient(105deg, #39ff14 0%, #86efac 42%, #4ade80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.22));
}

.property-import-hero__badge-wrap {
    padding: 1px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.75), rgba(57, 255, 20, 0.2), rgba(134, 239, 172, 0.45));
    box-shadow: 0 0 32px rgba(57, 255, 20, 0.12);
}

.property-import-hero__badge {
    width: 100%;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
}

.property-import-hero__stat-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(57, 255, 20, 0.16);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 27, 42, 0.55) 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.property-import-hero__stat-card:hover {
    border-color: rgba(57, 255, 20, 0.38);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-3px);
}

.property-import-hero__stat-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(57, 255, 20, 0.12);
    color: #39ff14;
    font-size: 1rem;
}

.property-import-hero__stat-value {
    font-size: 1.5rem;
    line-height: 1.15;
}

.property-import-hero__stat-regions {
    font-size: 0.8125rem;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .property-import-hero__stat-regions {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .property-import-hero__stat-value {
        font-size: 1.75rem;
    }

    .property-import-hero__stat-regions {
        font-size: 0.9375rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .property-import-hero__title-accent {
        filter: none;
    }

    .property-import-hero__stat-card {
        transition: none;
    }

    .property-import-hero__stat-card:hover {
        transform: none;
    }

    .property-import-hero__cta .property-import-hero__cta-shine {
        display: none;
    }

    .property-import-themes-marquee-track {
        animation: none;
        transform: none;
    }
}

/* Supported Themes: infinite horizontal scroll (duplicate row in PHP) */
.property-import-themes-marquee {
    overflow: hidden;
    width: 100%;
}

.property-import-themes-marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 4rem;
    animation: property-import-themes-marquee 28s linear infinite;
    will-change: transform;
}

@media (min-width: 768px) {
    .property-import-themes-marquee-track {
        gap: 6rem;
    }
}

@media (min-width: 1024px) {
    .property-import-themes-marquee-track {
        gap: 7rem;
    }
}

@keyframes property-import-themes-marquee {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* -------------------------------------------------------------------------
   CRM hub — in-depth guide (single source of truth for bg, padding, layout)
   DESIGN-GUIDE: #0A1214, #0F172A, #0F1B24, #39FF14, Inter
   ------------------------------------------------------------------------- */
.crm-hub-seo-section {
    position: relative;
    padding: 3rem 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #0a1214;
    color: #cbd5e1;
}

@media (min-width: 768px) {
    .crm-hub-seo-section {
        padding: 5rem 0;
    }
}

.crm-hub-seo-section__container {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.crm-hub-seo-unified {
    overflow: hidden;
}

/* Hero band (single column: badge, title, lead, CTAs) */
.crm-hub-seo-unified__hero {
    display: block;
}

.crm-hub-seo-unified__hero-text {
    flex: 1 1 auto;
    min-width: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #0a1214 0%, #072502 100%);
}

@media (min-width: 768px) {
    .crm-hub-seo-unified__hero-text {
        padding: 2.5rem 2rem;
    }
}

.crm-hub-seo-unified__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.85);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.crm-hub-seo-unified__badge .fa-sync-alt {
    color: #39ff14;
}

.crm-hub-seo-unified__title {
    margin: 1.5rem 0 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

@media (min-width: 768px) {
    .crm-hub-seo-unified__title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .crm-hub-seo-unified__title {
        font-size: 2.35rem;
    }
}

/* Hero: article is plain content (no prose box — inherit hero band only) */
.crm-hub-seo-unified__hero-text [itemscope] {
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .crm-hub-seo-unified__hero-text [itemscope] {
        margin-top: 2rem;
    }
}

.crm-hub-seo-unified__hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.crm-hub-seo-unified__btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.crm-hub-seo-unified__btn--primary {
    background: #39ff14;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.crm-hub-seo-unified__btn--primary:hover {
    background: #2ecc11;
    transform: translateY(-1px);
}

.crm-hub-seo-unified__btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff;
}

.crm-hub-seo-unified__btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
}

/* Body: primary (guide) left, Topics + Quick answers aside right on large screens */
.crm-hub-seo-unified__body {
    display: flex;
    flex-direction: column;
}

.crm-hub-seo-unified__primary {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.crm-hub-seo-unified__aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
    .crm-hub-seo-unified__body {
        display: grid;
        grid-template-columns: minmax(0, 65%) minmax(0, 35%);
        align-items: start;
    }

    .crm-hub-seo-unified__primary {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .crm-hub-seo-unified__aside {
        border-top: none;
        padding: 2rem 1.5rem 2rem 2rem;
    }
}

.crm-hub-seo-unified__panel {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0f1b24;
    padding: 1.25rem 1.25rem;
}

@media (min-width: 768px) {
    .crm-hub-seo-unified__panel {
        padding: 1.5rem;
    }
}

.crm-hub-seo-unified__panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #39ff14;
}

.crm-hub-seo-unified__panel-title .fas {
    font-size: 1rem;
}

.crm-hub-seo-unified__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crm-hub-seo-unified__tag {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(57, 255, 20, 0.25);
    background: #0a1214;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    color: #cbd5e1;
}

@media (min-width: 768px) {
    .crm-hub-seo-unified__tag {
        font-size: 0.875rem;
    }
}

.crm-hub-seo-unified__panel-footnote {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b;
}

.crm-hub-seo-unified__qa-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.crm-hub-seo-unified__quick .crm-hub-seo-snippet {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crm-hub-seo-unified__quick .crm-hub-seo-snippet:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.crm-hub-seo-snippet__q {
    display: flex;
    gap: 0.75rem;
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

@media (min-width: 768px) {
    .crm-hub-seo-snippet__q {
        font-size: 1rem;
    }
}

.crm-hub-seo-snippet__q .fas {
    flex-shrink: 0;
    margin-top: 0.125rem;
    width: 1.25rem;
    color: #39ff14;
}

.crm-hub-seo-snippet__a {
    margin: 0.5rem 0 0;
    padding-left: 2rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #94a3b8;
}

/* Article body (plain content in hero — no boxed “prose” panel) */
.crm-hub-seo-unified__article {
    min-width: 0;
    margin: 0;
    display: block;
    max-width: none;
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5e1;
}

@media (min-width: 768px) {
    .crm-hub-seo-unified__article {
        font-size: 1.0625rem;
    }
}

.crm-hub-seo-unified__article h1 {
    margin: 0 0 1rem;
    scroll-margin-top: 7rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
}

@media (min-width: 768px) {
    .crm-hub-seo-unified__article h1 {
        font-size: 2.25rem;
    }
}

.crm-hub-seo-unified__article h2 {
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.crm-hub-seo-unified__article h2:first-child {
    margin-top: 0;
}

.crm-hub-seo-unified__article h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.crm-hub-seo-unified__article p {
    margin: 0 0 1rem;
    color: #cbd5e1;
}

.crm-hub-seo-unified__article a {
    font-weight: 600;
    color: #39ff14;
    text-underline-offset: 2px;
}

.crm-hub-seo-unified__article a:hover {
    color: #5cff3c;
}

.crm-hub-seo-unified__article ul,
.crm-hub-seo-unified__article ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.crm-hub-seo-unified__article ul {
    list-style: disc;
}

.crm-hub-seo-unified__article ol {
    list-style: decimal;
}

.crm-hub-seo-unified__article li {
    margin-bottom: 0.375rem;
}

.crm-hub-seo-unified__article li::marker {
    color: rgba(57, 255, 20, 0.7);
}

.crm-hub-seo-unified__article strong {
    font-weight: 600;
    color: #fff;
}

.crm-hub-seo-unified__article blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    border-left: 4px solid #39ff14;
    border-radius: 0 0.5rem 0.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    font-style: italic;
    color: #94a3b8;
}

.crm-hub-seo-unified__article img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crm-hub-seo-unified__article figure {
    margin: 2rem 0;
}

.crm-hub-seo-unified__article code {
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.35);
    color: #94f58a;
}

/* Bottom CTA */
.crm-hub-seo-unified__cta-bar {
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0f172a;
}

@media (min-width: 768px) {
    .crm-hub-seo-unified__cta-bar {
        padding: 2rem 2.5rem;
    }
}

.crm-hub-seo-unified__cta-note {
    margin: 1rem auto 0;
    max-width: 28rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b;
}

@media (prefers-reduced-motion: reduce) {
    .crm-hub-seo-section * {
        transition: none !important;
    }
}
