/* TSS Redesign — Contact (06) + Pricing (07)
 * Self-contained: re-declares the shared .tss-page-banner rules (copied from
 * tss-blog.css) so this slice does not depend on tss-blog.css being loaded.
 */

/* ─────────────── Shared page banner (copied from tss-blog.css) ─────────────── */
.tss-page-banner { background: #fff; color: var(--tss-ink, #0E2A47); padding: 64px 56px 56px; border-bottom: 1px solid var(--tss-line, #E5E7EB); }
.tss-page-banner-inner { max-width: 1280px; margin: 0 auto; }
.tss-page-banner-crumb { font-size: 12px; font-weight: 500; color: var(--tss-mute, #6B7280); display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.tss-page-banner-crumb a { color: var(--tss-teal-darker, #115E59); text-decoration: none; }
.tss-page-banner-crumb .sep { color: var(--tss-mute-2, #9CA3AF); }
.tss-page-banner-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--tss-teal-darker, #115E59); margin-bottom: 10px; }
.tss-page-banner-title { margin: 0; font-size: 48px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; color: var(--tss-ink, #0E2A47); }

/* ════════════════════════════ CONTACT (06) ════════════════════════════ */
.tss-contact-page { background: #fff; }
.tss-contact { background: #fff; }
.tss-contact-inner { max-width: 1280px; margin: 0 auto; padding: 56px 56px 80px; }
.tss-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }

/* Left column */
.tss-contact-h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; color: var(--tss-ink, #0E2A47); }
.tss-contact-lead { margin: 10px 0 0; font-size: 14px; color: var(--tss-mute, #6B7A8C); line-height: 1.6; }
.tss-contact-rows { margin-top: 28px; }
.tss-contact-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--tss-line, #E8ECF1); }
.tss-contact-row-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--tss-teal-soft, #ECFDF8); color: var(--tss-teal-darker, #115E59); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tss-contact-row-icon svg { display: block; }
.tss-contact-row-label { font-size: 11px; font-weight: 700; color: var(--tss-mute, #6B7A8C); letter-spacing: 0.12em; margin-bottom: 2px; }
.tss-contact-row-value { font-size: 14px; color: var(--tss-ink, #0E2A47); font-weight: 500; }
.tss-contact-row-value a { color: inherit; text-decoration: none; }
.tss-contact-row-value a:hover { color: var(--tss-teal-darker, #115E59); }

/* Live Leaflet map (#cpmap is initialised by the theme's main.js) */
.tss-contact-map { margin-top: 28px; border-radius: 12px; overflow: hidden; border: 1px solid var(--tss-line, #E8ECF1); }
.tss-contact-map .cp-lat, .tss-contact-map .cp-lan { display: none; }
.tss-contact-map #cpmap { height: 260px; width: 100%; }
/* Map marker — the foundation reset `img,svg{display:block}` defeats the theme's
   inline-centering (text-align/line-height) of the pin logo, leaving it in the
   top-left of the pin. Re-centre the logo inside the pin circle with flexbox. */
.tss-contact-map .lpmap-icon-contianer { display: flex; align-items: center; justify-content: center; }
.tss-contact-map .lpmap-icon-contianer img { position: static; top: auto; margin: 0; }

/* Form card — .contact-right wrapper kept for the theme's main.js binding */
.tss-contact-form-card { background: var(--tss-bg, #F8FAFB); border: 1px solid var(--tss-line, #E8ECF1); border-radius: 12px; padding: 32px 32px 21px; }
.tss-contact-form-eyebrow { font-size: 11px; font-weight: 700; color: var(--tss-teal-darker, #115E59); letter-spacing: 0.14em; margin-bottom: 8px; }
.tss-contact-form-title { margin: 0 0 24px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--tss-ink, #0E2A47); }
.tss-contact-form { display: flex; flex-direction: column; gap: 14px; }
.tss-contact-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tss-contact-field label { display: block; font-size: 12px; color: var(--tss-mute, #6B7A8C); font-weight: 500; margin-bottom: 6px; }
.tss-contact-form-card .tss-contact-form .form-control {
    width: 100%; padding: 12px 14px; margin: 0; border: 1px solid var(--tss-line, #E8ECF1);
    border-radius: 8px; font-size: 14px; line-height: 1.5; background: #fff;
    color: var(--tss-ink, #0E2A47); box-shadow: none; height: auto; font-family: inherit;
}
.tss-contact-form-card .tss-contact-form textarea.form-control { resize: vertical; min-height: 120px; }
.tss-contact-form-card .tss-contact-form .form-control:focus { border-color: var(--tss-teal, #14B8A6); outline: none; }
.tss-contact-form-card .tss-contact-form .form-control.lp-required-field { border-color: var(--tss-orange, #F26A3F); background: #FFF7F5; }
.tss-contact-submit {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; background: var(--tss-orange, #F26A3F); color: #fff; border: none;
    border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
    font-family: inherit; width: auto; transition: background .15s ease;
}
.tss-contact-submit:hover, .tss-contact-submit:focus { background: var(--tss-orange-h, #DD5A30); color: #fff; }
.tss-contact-submit svg { display: block; }

/* Native AJAX status nodes — full-width message blocks directly below the Send
   button (and above the reCAPTCHA disclosure, which the theme injects after the
   form). `.tss-contact-status` reserves a fixed slot so the card height does not
   jump when a message appears; the theme shows/hides the inner divs via JS. */
.tss-contact-status { min-height: 44px; }
.tss-contact-form .statuss { padding: 2px 0; color: var(--tss-mute, #6B7A8C); font-size: 13px; }
/* The theme styles #success/#error as `position:absolute; bottom:-75px` (it
   relied on the parent form's `pos-relative` class, which the redesign drops).
   Force them back into normal flow so they sit inside the form card. */
.tss-contact-form #success,
.tss-contact-form #error { position: static; bottom: auto; left: auto; width: 100%; }
.tss-contact-form #success span,
.tss-contact-form #error span { display: block; }
.tss-contact-form #success p,
.tss-contact-form #error p {
    margin: 0; padding: 10px 14px; border-radius: 8px;
    font-size: 13.5px; line-height: 1.5; text-align: left; font-weight: 500;
}
.tss-contact-form #error p { color: #B42318; background: #FEF3F2; border: 1px solid #FECDCA; }
/* Success — the theme forces a bright lime `#91cd61 !important` via
   `#success span.green p`, which clashes with the palette. Override with an
   on-brand soft-teal box (matches the contact-info icon tiles). */
.tss-contact-form #success span.green p,
.tss-contact-form #success p {
    color: #0F766E !important;
    background: #ECFDF8 !important;
    border: 1px solid #99E6D3 !important;
}

/* ════════════════════════════ PRICING (07) ════════════════════════════
 * Restyles the real [listingpro_pricing] shortcode markup. The plugin's old
 * pricing block (design-modernization.css §17) was removed 2026-05-20 so these
 * scoped rules are the single source of truth. Checkout markup is untouched.
 * Structure: .price-plan-box > .price-plan-box-upper (header) +
 *            .price-plan-box-bottom > .price-plan-content (features) + form.price-plan-button
 */
.tss-pricing-page { background: #fff; }
.tss-pricing { background: #fff; }
.tss-pricing-inner { max-width: 1240px; margin: 0 auto; padding: 56px 56px 96px; }

/* Neutralise the shortcode's Bootstrap column wrapper + hide its own titles */
.tss-pricing-wrap .horizontal_view { float: none; width: 100%; max-width: 1160px; margin: 0 auto; padding: 0; }
.tss-pricing-wrap .page-header,
.tss-pricing-wrap .lp-no-title-subtitle,
.tss-pricing-wrap .lp-no-title-subtitleeeeeeeee { display: none; }

/* 3-up card grid (cards are direct children of .lp_plan_result_section) */
.tss-pricing-wrap .lp_plan_result_section {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    width: 100%; margin: 22px 0 0; padding: 0; align-items: stretch;
}
.tss-pricing-wrap .price-plan-box {
    margin: 0; background: #fff; border: 1px solid var(--tss-line, #E8ECF1);
    border-radius: 16px; box-shadow: 0 1px 3px rgba(14,42,71,0.05);
    display: flex; flex-direction: column; position: relative; overflow: visible;
}

/* Header — transparent so the card's own rounded background shows at the
   corners (a solid child bg would square them off under overflow:visible).
   `!important` still defeats any leftover per-plan inline background-color. */
.tss-pricing-wrap .price-plan-box-upper {
    background: transparent !important; border: none; box-shadow: none;
    padding: 30px 28px 4px; text-align: left;
}
.tss-pricing-wrap .price-plan-box-upper .lp-plane-top-wrape { padding: 0; }
.tss-pricing-wrap .lp-plane-top-wrape h1 {
    display: flex; flex-direction: column; gap: 6px;
    margin: 0; padding: 0; border: none; line-height: 1.1;
}
/* Tier label + price. The theme forces `.price-plan-box-upper h1 span { color:#fff
   !important }` (main.css:6424) — white-on-white — so colour needs !important here. */
.tss-pricing-wrap .lp-plane-top-wrape h1 .pull-left {
    float: none !important; order: 1; font-size: 12px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--tss-mute, #6B7A8C) !important;
}
.tss-pricing-wrap .lp-plane-top-wrape h1 .pull-right {
    float: none !important; order: 2; font-size: 44px; font-weight: 600;
    letter-spacing: -0.025em; color: var(--tss-ink, #0E2A47) !important;
}
.tss-pricing-wrap .lp-plane-top-wrape p {
    margin: 10px 0 0; padding: 0; font-size: 13px; line-height: 1.5;
}
.tss-pricing-wrap .lp-plane-top-wrape p .pull-left,
.tss-pricing-wrap .lp-plane-top-wrape p .pull-right {
    float: none !important; display: inline; color: var(--tss-mute, #6B7A8C) !important;
}
.tss-pricing-wrap .lp-plane-top-wrape p .pull-right::before { content: " · "; }

/* Bottom — CTA first, divider, then feature list */
.tss-pricing-wrap .price-plan-box-bottom {
    display: flex; flex-direction: column; flex: 1;
    border: none; background: transparent; padding: 20px 28px 28px;
}
.tss-pricing-wrap .price-plan-button { float: none !important; width: 100%; order: 0; margin: 0; }
/* Buttons — override design-modernization.css's global `.lp-secondary-btn`
   !important rules (transparent bg / grey 2px border). Default = outlined teal. */
.tss-pricing-wrap .price-plan-button input[type="submit"] {
    display: block !important; width: 100% !important; margin: 0 !important;
    padding: 13px 20px !important; border-radius: 8px !important;
    font-size: 14px !important; font-weight: 600 !important; cursor: pointer;
    background: #fff !important; color: var(--tss-teal-darker, #115E59) !important;
    border: 2px solid var(--tss-teal-deep, #0D9488) !important;
    transition: all .15s ease !important;
}
.tss-pricing-wrap .price-plan-button input[type="submit"]:hover {
    background: var(--tss-teal-deep, #0D9488) !important;
    border-color: var(--tss-teal-deep, #0D9488) !important;
    color: #fff !important;
}
.tss-pricing-wrap .price-plan-content { float: none !important; width: auto; order: 1; }
.tss-pricing-wrap .price-plan-content ul.list-style-none {
    margin: 22px 0 0; padding: 22px 0 0;
    border-top: 1px solid var(--tss-line, #E8ECF1); list-style: none;
}
.tss-pricing-wrap .price-plan-content ul.list-style-none li {
    display: flex; align-items: flex-start; gap: 10px; border: none;
    margin: 0; padding: 7px 0; font-size: 13.5px; line-height: 1.5; color: var(--tss-ink, #0E2A47);
}
/* Replace the shortcode's base64 check image with a clean teal checkmark */
.tss-pricing-wrap .price-plan-content ul.list-style-none li .icon-text { display: none; }
.tss-pricing-wrap .price-plan-content ul.list-style-none li::before {
    content: "✓"; flex-shrink: 0; color: var(--tss-teal-darker, #115E59);
    font-weight: 700; font-size: 13px; line-height: 1.5;
}

/* "MOST POPULAR" — Gold card. 113 is the Gold price_plan post ID; the shortcode
 * emits the plan ID as a class on .price-plan-box. Update if the plan is recreated. */
.tss-pricing-wrap .price-plan-box[class~="113"] {
    border: 2px solid var(--tss-orange, #F26A3F);
    box-shadow: 0 24px 48px -16px rgba(242,106,63,0.20);
    transform: translateY(-10px);
}
.tss-pricing-wrap .price-plan-box[class~="113"]::before {
    content: "MOST POPULAR"; position: absolute; top: -12px; left: 32px;
    white-space: nowrap;
    background: var(--tss-orange, #F26A3F); color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; padding: 4px 12px; border-radius: 6px; z-index: 3;
}
/* Popular (Gold) card — filled orange button, distinct from the outlined ones. */
.tss-pricing-wrap .price-plan-box[class~="113"] .price-plan-button input[type="submit"] {
    background: var(--tss-orange, #F26A3F) !important;
    border-color: var(--tss-orange, #F26A3F) !important;
    color: #fff !important;
}
.tss-pricing-wrap .price-plan-box[class~="113"] .price-plan-button input[type="submit"]:hover {
    background: var(--tss-orange-h, #DD5A30) !important;
    border-color: var(--tss-orange-h, #DD5A30) !important;
    color: #fff !important;
}

/* ════════════════════════════ RESPONSIVE ════════════════════════════ */
@media (max-width: 991px) {
    .tss-page-banner { padding: 48px 32px 40px; }
    .tss-page-banner-title { font-size: 36px; }
    .tss-contact-inner { padding: 40px 32px 64px; }
    .tss-contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .tss-pricing-inner { padding: 40px 32px 72px; }
    .tss-pricing-wrap .lp_plan_result_section { grid-template-columns: 1fr; gap: 36px; }
    .tss-pricing-wrap .price-plan-box[class~="113"] { transform: none; }
}
@media (max-width: 767px) {
    .tss-page-banner { padding: 36px 18px 32px; }
    .tss-page-banner-title { font-size: 30px; }
    .tss-contact-inner { padding: 32px 16px 56px; }
    .tss-contact-field-grid { grid-template-columns: 1fr; }
    .tss-contact-form-card { padding: 24px 18px; }
    .tss-pricing-inner { padding: 32px 16px 56px; }
}
