/*
 * Coachivas site pages (Nov 2026): About, How it works, FAQ, Terms, Privacy (page builder blocks) and Contact.
 * Same look as the homepage, Find a coach and coach profile. Every rule is scoped to .cvs.
 * Replaces static-pages-theme.css, about-us-page.css, how-it-works-page.css, faq-page.css and contact-page.css.
 * Markup: resources/views/pagebuilder/{block}/view.blade.php and resources/views/frontend/contact-us.blade.php.
 */

/* Page background + header in the same cream (the page builder wraps blocks in .page-{slug}) */
body:has(.cvs) { background: #fbf6ef; }
body:has(.cvs) .am-header_two.am-header_eight { background: #fbf6ef !important; }
body:has(.cvs) .am-main { background: #fbf6ef; }
body:has(.cvs) .pb-themesection { padding: 0 !important; margin: 0 !important; background: none !important; }
body:has(.cvs) .pb-themesection > div, body:has(.cvs) .pb-themesection .row { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
body:has(.cvs) .pb-themesection .row > [class*="col"] { padding: 0 !important; width: 100%; max-width: 100%; flex: 0 0 100%; }

.cvs {
    --cream: #fbf6ef;
    --cream-2: #f5ebdf;
    --ink: #1d1a17;
    --muted: #6b625a;
    --line: #eadfd2;
    --grad: linear-gradient(135deg, #f3c93c 0%, #e79ab3 100%);
    --grad-soft: linear-gradient(135deg, #fdf3d9 0%, #fcefe6 55%, #fbebee 100%);
    --serif: "Playfair Display", Georgia, serif;
    --sans: Poppins, system-ui, sans-serif;
    color: var(--ink);
    font-family: var(--sans);
    overflow-x: clip;
}
.cvs *, .cvs *::before, .cvs *::after { box-sizing: border-box; }
.cvs h1, .cvs h2, .cvs h3, .cvs h4, .cvs p { margin: 0; }
.cvs a { text-decoration: none; }
.cvs img { max-width: 100%; }

.cvs-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.cvs-narrow { max-width: 900px; }
.cvs-center { text-align: center; }
.cvs-section { padding: 48px 0; }

.cvs .cvs-serif, .cvs h1, .cvs h2, .cvs h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -0.005em; }
.cvs h1 { font-size: 54px; line-height: 1.08; }
.cvs h2 { font-size: 40px; line-height: 1.15; }
.cvs h3 { font-size: 22px; line-height: 1.3; }
.cvs-lead { font-size: 17px; line-height: 1.75; color: var(--muted); }
.cvs-center .cvs-lead { max-width: 740px; margin-left: auto; margin-right: auto; }

.cvs-kicker { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 15px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; line-height: 1.3; margin-bottom: 18px; }
.cvs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }

.cvs-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cvs-center .cvs-btns { justify-content: center; }
.cvs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.cvs-btn:hover { transform: translateY(-1px); }
.cvs-btn--grad { background: var(--grad); color: var(--ink) !important; }
.cvs-btn--dark { background: var(--ink); color: #fff !important; }
.cvs-btn--line { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.cvs-btn--line:hover { background: #fff; }

/* Shared panels */
.cvs-panel { background: #fff; border: 1px solid var(--line); border-radius: 36px; }
.cvs-tint { background: var(--grad-soft); border-radius: 36px; }

/* ── Hero (content-banner block) ───────────────────────── */
.cvs-hero { padding: 28px 24px 8px; }
.cvs-hero__box { background: var(--grad-soft); border-radius: 40px; padding: 72px 48px 76px; text-align: center; position: relative; overflow: hidden; }
.cvs-hero__box::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: var(--grad); opacity: .18; filter: blur(30px); pointer-events: none; }
.cvs-hero h1 { max-width: 900px; margin: 0 auto; }
.cvs .cvs-hero__text { text-align: center; max-width: 740px; margin: 18px auto 0; font-size: 17px; line-height: 1.75; color: var(--muted); }
.cvs-hero__text p { margin: 0 0 10px; }
.cvs-hero__text p:last-child { margin-bottom: 0; }
.cvs-hero__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Image + text split (mission and track blocks) ──────── */
.cvs-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; padding: 64px; }
.cvs-split--flip .cvs-split__media { order: -1; }
.cvs-split h2 { font-size: 38px; }
.cvs-split .cvs-lead { margin-top: 16px; }
.cvs-split__media { position: relative; }
.cvs-split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 25%; border-radius: 28px; display: block; }
.cvs-split__media::before { content: ""; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%; border-radius: 28px; background: var(--grad-soft); z-index: 0; }
.cvs-split__media img { position: relative; z-index: 1; }

.cvs-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.cvs-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; list-style: none; margin: 0; padding: 0; }
.cvs-points li::before, .cvs-points li::marker { content: none; }
.cvs-points__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-soft); display: grid; place-items: center; color: #d9822b; }
.cvs-points h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.4; margin-top: 2px; }
.cvs-points p, .cvs-points span.cvs-points__text { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* ── Coach cards (experienced-tutors block) ─────────────── */
.cvs-coaches { padding: 72px 0; }
.cvs-coaches__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.cvs-coaches__head .cvs-lead { max-width: 640px; margin-top: 12px; }
.cvs-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cvs-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform 160ms ease, box-shadow 160ms ease; }
.cvs-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(29, 26, 23, .08); }
.cvs-card__img { display: block; aspect-ratio: 1 / 1.05; overflow: hidden; background: var(--cream-2); }
.cvs-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.cvs-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.cvs-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cvs-card h3 { font-size: 20px; }
.cvs-card h3 a { color: var(--ink); }
.cvs-card .am-featured-coach-card__title { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 6px 0 16px; text-align: left; }
.cvs-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.cvs-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: var(--ink); white-space: nowrap; }
.cvs-link { font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: underline !important; text-underline-offset: 4px; }

/* ── Numbers (achievements block) ───────────────────────── */
.cvs-stats-wrap { padding: 64px; }
.cvs-stats { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cvs-stats li { list-style: none; margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px 26px; text-align: center; position: relative; overflow: hidden; }
.cvs-stats li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.cvs-stats__icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 20px; color: var(--ink); border: 1px solid var(--line); }
/* CMS value looks like: 4.8/5 <span>average rating</span> */
.cvs-stats strong { display: block; font-family: var(--serif); font-size: 38px; line-height: 1.1; font-weight: 600; color: var(--ink); }
.cvs-stats strong span { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--muted); }

/* ── Tabs (How it works, FAQ) ───────────────────────────── */
.cvs-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); margin: 0 auto 32px; }
.cvs-tabs__wrap { text-align: center; }
.cvs-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 24px; border-radius: 999px; border: 0; background: transparent; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.cvs-tab:hover { color: var(--ink); }
.cvs-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.cvs-tabpanel[hidden] { display: none !important; }

/* ── Steps (how-it-works block) ─────────────────────────── */
.cvs-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cvs-step { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; align-items: center; }
.cvs-step:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 10px); justify-self: center; width: 100%; }
.cvs-step__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cvs-step__num { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 18px; font-weight: 600; color: var(--ink); flex: none; }
.cvs-step__eyebrow { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: 5px 11px; border-radius: 999px; background: var(--grad-soft); }
a.cvs-step__eyebrow:hover { color: var(--ink); }
.cvs-step h3 { font-size: 21px; }
.cvs-step__body { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.cvs-step__body p { margin: 0; }
.cvs-step__visual { width: 150px; height: 150px; border-radius: 22px; overflow: hidden; background: var(--grad-soft); }
.cvs-step__visual img, .cvs-step__visual figure { width: 100%; height: 100%; margin: 0; }
.cvs-step__visual img { object-fit: cover; display: block; }
.cvs-step__visual svg { width: 100%; height: 100%; }

/* ── FAQ (faqs block) ───────────────────────────────────── */
.cvs-faq { max-width: 860px; margin: 0 auto; }
.cvs-faq__list { display: grid; gap: 12px; }
.cvs-q { background: #fff; border: 1px solid var(--line); border-radius: 22px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.cvs-q[open] { border-color: #d9c8b6; box-shadow: 0 10px 26px rgba(29, 26, 23, .05); }
.cvs-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; }
.cvs-q summary::-webkit-details-marker { display: none; }
.cvs-q summary h2 { font-family: var(--sans); font-size: 16.5px; font-weight: 600; line-height: 1.45; }
.cvs-q__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform 200ms ease, background 160ms ease; }
.cvs-q[open] .cvs-q__icon { transform: rotate(45deg); background: var(--grad); border-color: transparent; }
.cvs-q__a { padding: 0 24px 22px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.cvs-q__a p { margin: 0 0 10px; }
.cvs-q__a p:last-child { margin-bottom: 0; }
.cvs-q__a a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cvs-q__a ul, .cvs-q__a ol { padding-left: 20px; margin: 0 0 10px; }

/* ── Legal text (paragraph block) ───────────────────────── */
.cvs-legal { padding: 40px 48px 72px; }
.cvs-legal__doc { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 36px; padding: 56px 64px 60px; }
.cvs-legal__doc > h2:first-child { font-size: 34px; margin-bottom: 18px; }
.cvs-prose { font-size: 15.5px; line-height: 1.8; color: #4a423b; overflow-wrap: anywhere; }
.cvs-prose h1, .cvs-prose h2, .cvs-prose h3, .cvs-prose h4, .cvs-prose h5, .cvs-prose h6 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.3; margin: 34px 0 10px; }
.cvs-prose h2 { font-size: 26px; }
.cvs-prose h3 { font-size: 21px; }
.cvs-prose h4, .cvs-prose h5, .cvs-prose h6 { font-family: var(--sans); font-size: 16px; }
.cvs-prose p { margin: 0 0 14px; }
/* Text pasted from Word: empty tags, and section titles as loose <strong> (not inside a <p>) */
.cvs-prose :is(p, h1, h2, h3, h4, h5, h6):empty { display: none; }
.cvs-prose > div > strong, .cvs-prose > strong { display: block; font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.3; color: var(--ink); margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.cvs-prose p > strong:first-child { font-size: 16.5px; }
.cvs-prose ul, .cvs-prose ol { padding-left: 22px; margin: 0 0 16px; }
.cvs-prose li { margin-bottom: 6px; }
.cvs-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cvs-prose strong, .cvs-prose b { color: var(--ink); }
.cvs-prose em:first-child { color: var(--muted); }
.cvs-prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; }
.cvs-prose th, .cvs-prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }

/* ── Contact page ───────────────────────────────────────── */
.cvs-contact { padding: 40px 0 80px; }
.cvs-contact__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; margin-top: 40px; }
.cvs-contact__side { display: grid; gap: 18px; }
.cvs-info { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
.cvs-info__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; margin-bottom: 16px; }
.cvs-info h2, .cvs-info h3 { font-size: 22px; }
.cvs-info p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.cvs-info a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.cvs-form { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 40px; }
.cvs-form h2 { font-size: 32px; }
.cvs-form > p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.cvs-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 26px; }
.cvs-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cvs-field--full { grid-column: 1 / -1; }
.cvs-field label { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0; }
.cvs .cvs-field input, .cvs .cvs-field textarea, .cvs .cvs-field select { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); padding: 12px 16px; font-family: var(--sans); font-size: 15px; color: var(--ink); box-shadow: none; outline: none; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.cvs .cvs-field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.cvs .cvs-field input:focus, .cvs .cvs-field textarea:focus, .cvs .cvs-field select:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(243, 201, 60, .22); }
.cvs-field .cvs-error, .cvs-form .cvs-error { font-size: 13px; color: #b42318; }
.cvs-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.cvs-alert { border-radius: 16px; padding: 14px 18px; font-size: 15px; line-height: 1.6; margin-top: 20px; }
.cvs-alert--ok { background: #eef8ee; border: 1px solid #b8e0b8; color: #1f5f2a; }
.cvs-alert--err { background: #fdf0ef; border: 1px solid #f0c4bf; color: #8a2a1f; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .cvs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cvs-split { gap: 40px; padding: 48px; }
}
@media (max-width: 991.98px) {
    .cvs-wrap { padding: 0 24px; }
    .cvs h1 { font-size: 42px; }
    .cvs h2, .cvs-split h2 { font-size: 32px; }
    .cvs-split { grid-template-columns: 1fr; }
    .cvs-split__media, .cvs-split--flip .cvs-split__media { order: -1; }
    .cvs-steps { grid-template-columns: 1fr; }
    .cvs-step:last-child:nth-child(odd) { max-width: none; }
    .cvs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cvs-contact__grid { grid-template-columns: 1fr; }
    .cvs-contact__side { order: 2; }
    .cvs-coaches__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767.98px) {
    .cvs-hero { padding: 16px 12px 4px; }
    .cvs-hero__box { padding: 48px 22px 52px; border-radius: 30px; }
    .cvs h1 { font-size: 34px; }
    .cvs h2, .cvs-split h2 { font-size: 28px; }
    .cvs-hero__text, .cvs-lead { font-size: 15.5px; }
    .cvs-section { padding: 28px 0; }
    .cvs-wrap { padding: 0 12px; }
    .cvs-panel, .cvs-tint { border-radius: 28px; }
    .cvs-split { padding: 22px 20px 28px; gap: 26px; }
    .cvs-stats-wrap { padding: 34px 20px; }
    .cvs-stats { gap: 12px; }
    .cvs-stats li { padding: 22px 12px 20px; border-radius: 20px; }
    .cvs-stats strong { font-size: 30px; }
    .cvs-coaches { padding: 44px 0; }
    .cvs-coaches .cvs-wrap { padding: 0 16px; }
    .cvs-cards { gap: 12px; }
    .cvs-card__body { padding: 14px 14px 16px; }
    .cvs-card h3 { font-size: 17px; }
    .cvs-card__foot .coach-card-price, .cvs-card__foot > :first-child { font-size: 13px; }
    .cvs-step { grid-template-columns: 1fr; padding: 20px; }
    .cvs-step__visual { width: 100%; height: 180px; order: -1; }
    .cvs-tabs { display: flex; width: 100%; }
    .cvs-tab { flex: 1; justify-content: center; padding: 10px 12px; font-size: 14px; }
    .cvs-q summary { padding: 16px 18px; }
    .cvs-q summary h2 { font-size: 15.5px; }
    .cvs-q__a { padding: 0 18px 18px; font-size: 14.5px; }
    .cvs-legal { padding: 24px 12px 48px; }
    .cvs-legal__doc { padding: 32px 22px 36px; border-radius: 28px; }
    .cvs-legal__doc > h2:first-child { font-size: 28px; }
    .cvs-form { padding: 26px 20px; border-radius: 28px; }
    .cvs-form__grid { grid-template-columns: 1fr; }
    .cvs-btn { white-space: normal; text-align: center; }
}
@media (max-width: 330px) {
    .cvs-cards { grid-template-columns: 1fr; }
    .cvs-stats { grid-template-columns: 1fr; }
}
