/* ════════════════════════════════════════
   SELL PROPERTY LANDING — "List Your Property" seller campaign
   Loaded only on the "Sell Property Landing" page template.
   Everything is scoped under .sell-landing so generic class names
   (.btn, h1, .lead) and design-specific custom properties never leak
   into the rest of the site. Shares the visual language of the
   recruitment landing (sky hero, chevron clip, navy buttons, form card).
   Reuses the theme's --navy / --blue tokens (identical values).
════════════════════════════════════════ */

.sell-landing {
    /* — design-specific tokens, scoped (NOT :root) — */
    --ink: #0B0B45;
    --muted: #5b6b8c;
    --radius: 22px;
    --shadow-sm: 0 8px 24px rgba(11, 11, 69, .10);

    font-family: 'Poppins', Arial, sans-serif;
    color: var(--ink);
    /* Shows through the clip-path notch under the hero chevron — same off-white
       as the sections below it, not pure white. */
    background: #F5F6FA;
    -webkit-font-smoothing: antialiased;
}

.sell-landing * {
    box-sizing: border-box;
}

/* Loads only on this template. Lock the document to the viewport so nothing
   can push the page wider than the screen on small phones (same guard as the
   recruitment landing). */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* ===== HERO ===== */
.sell-landing .hero {
    position: relative;
    text-align: center;
    padding: 74px 20px 130px;
    overflow: hidden;
    /* Same sky photo as the recruitment landing. Domain-relative URL (Media
       Library) so it resolves on whatever host serves the page. */
    background:
        url('/wp-content/uploads/2026/06/clouds-drifting-peacefully-in-a-blue-sky.webp') center / cover no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}

.sell-landing .hero::before {
    /* cloud wisps */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(55% 36% at 15% 20%, rgba(255, 255, 255, .5), transparent 60%),
        radial-gradient(45% 26% at 88% 26%, rgba(255, 255, 255, .38), transparent 60%),
        radial-gradient(40% 24% at 70% 12%, rgba(255, 255, 255, .3), transparent 60%);
}

.sell-landing .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* Brand logo at the top of the hero (white PNG, sits on the sky) */
.sell-landing .lp-logo {
    display: block;
    height: clamp(38px, 5vw, 48px);
    width: auto;
    margin: 0 auto 32px;
}

.sell-landing h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.02em;
    background: linear-gradient(104deg, #ffffff 28%, rgba(255, 255, 255, .42) 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.sell-landing .hero-lead {
    max-width: 620px;
    margin: 20px auto 0;
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 2px 12px rgba(11, 11, 69, .25);
}

.sell-landing .cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.sell-landing .btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 13px 24px;
    border-radius: 999px;
    border: 0;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.sell-landing .btn:hover {
    transform: translateY(-2px);
}

.sell-landing .btn svg {
    width: 17px;
    height: 17px;
}

.sell-landing .btn-dark {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 26px rgba(11, 11, 69, .32);
}

.sell-landing .btn-light {
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

/* ===== WHY LIST WITH D&B ===== */
.sell-landing .why {
    padding: 84px 20px 10px;
    background: #F5F6FA;
}

.sell-landing .why-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.sell-landing .why h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.01em;
}

.sell-landing .why-list {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    text-align: left;
}

.sell-landing .why-list li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #eceff5;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

.sell-landing .why-list li svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--blue);
}

/* ===== LEAD FORM (#lead) — same styling as the recruitment application form ===== */
.sell-landing .apply {
    padding: 70px 20px 100px;
    background: #F5F6FA;
}

.sell-landing .apply-inner {
    max-width: 640px;
    margin: 0 auto;
}

.sell-landing .apply h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    letter-spacing: -.01em;
}

.sell-landing .apply .lead {
    text-align: center;
    color: var(--muted);
    margin-top: 12px;
    font-size: 1.02rem;
}

/* The CF7 <form> is the card — white on the light-grey section */
.sell-landing .apply .wpcf7-form {
    margin-top: 36px;
    padding: 38px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid #eceff5;
    box-shadow: var(--shadow-sm);
}

.sell-landing .apply .rc-field {
    margin-bottom: 22px;
}

.sell-landing .apply .rc-field > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.sell-landing .apply .rc-req {
    color: #e0322d;
}

.sell-landing .apply .wpcf7-form-control-wrap {
    display: block;
}

/* Text-like inputs */
.sell-landing .apply input[type=text],
.sell-landing .apply input[type=email],
.sell-landing .apply input[type=tel] {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    padding: 13px 15px;
    border: 1px solid #dfe3ec;
    border-radius: 8px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.sell-landing .apply input[type=text]:focus,
.sell-landing .apply input[type=email]:focus,
.sell-landing .apply input[type=tel]:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(31, 60, 158, .14);
}

/* Phone field: country-code flag widget (intl-tel-input) — the SAME one the main
   site form uses; the phone input is opted in via a wpcf7_form_elements filter in
   template-sell-property.php. These rules theme the flag dropdown to match. */
.sell-landing .apply .iti {
    display: block;
    width: 100%;
}

.sell-landing .apply .iti__country-list {
    background: #fff;
    border: 1px solid #dfe3ec;
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(11, 11, 69, .14);
    border-radius: 8px;
}

.sell-landing .apply .iti__country.iti__highlight {
    background: #f4f6fa;
}

.sell-landing .apply .iti__divider {
    border-bottom: 1px solid #eceff5;
}

.sell-landing .apply .iti__dial-code {
    color: var(--muted);
}

/* Submit */
.sell-landing .apply .wpcf7-submit {
    width: 100%;
    margin-top: 6px;
    background: var(--navy);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 16px;
    border: 0;
    border-radius: 8px;
    transition: background .15s ease, transform .15s ease;
}

.sell-landing .apply .wpcf7-submit:hover {
    background: var(--blue);
    transform: translateY(-1px);
}

/* CF7 validation / response messages (incl. the thank-you message) */
.sell-landing .apply .wpcf7-not-valid-tip {
    color: #d33;
    font-size: 13px;
    margin-top: 6px;
}

.sell-landing .apply .wpcf7-response-output {
    margin: 18px 0 0 !important;
    padding: 14px 18px !important;
    border-radius: 8px;
    font-size: 14.5px;
    text-align: center;
}

/* Thank-you message after a successful submit */
.sell-landing .apply .wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--blue);
    background: rgba(31, 60, 158, .06);
    color: var(--navy);
    font-weight: 600;
}

.sell-landing .lp-footer {
    text-align: center;
    padding: 30px 20px 50px;
    color: #9aa6c4;
    font-size: 13px;
    background: #F5F6FA;
}

/* ════════════════════════════════════════
   HERO ENTRANCE ANIMATION — headline → lead → CTAs
════════════════════════════════════════ */

@keyframes sp-rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sell-landing h1,
.sell-landing .hero-lead,
.sell-landing .cta-row {
    animation: sp-rise .7s cubic-bezier(.22, .61, .36, 1) both;
}

.sell-landing h1 {
    animation-delay: .10s;
}

.sell-landing .hero-lead {
    animation-delay: .26s;
}

.sell-landing .cta-row {
    animation-delay: .42s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .sell-landing .hero {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
        padding-bottom: 100px;
    }

    .sell-landing .why-list {
        grid-template-columns: 1fr;
    }

    .sell-landing .apply .wpcf7-form {
        padding: 26px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sell-landing * {
        transition: none !important;
        animation: none !important;
    }
}
