/* ============================================================
   ChemSmog static pages — shared styles
   Login, Register, About Us, Contact, FAQ
   ============================================================ */

body .cs-page,
body .cs-page * { box-sizing: border-box; }

.cs-page {
    width: 100%;
    min-height: 60vh;
    padding: 64px 0 96px;
    background: var(--cs-white);
    font-family: var(--cs-font-primary);
    color: var(--cs-text);
}
.cs-page__container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
}
.cs-page--wide .cs-page__container { max-width: 1280px; }
.cs-page--narrow .cs-page__container { max-width: 720px; }

/* ---------- Page header ---------- */
.cs-page__hero {
    background: var(--cs-bg);
    padding: 48px 0;
    border-bottom: 1px solid var(--cs-divider);
    margin-bottom: 56px;
}
.cs-page__hero-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cs-page__hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--cs-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}
.cs-page__hero--gradient {
    background: linear-gradient(90deg, var(--cs-navy) 0%, var(--cs-blue) 100%);
}
.cs-page__hero--gradient .cs-page__hero-title { color: var(--cs-white); }

.cs-page__crumb {
    color: var(--cs-white);
    font-size: 13px;
    opacity: 0.85;
}
.cs-page__crumb a {
    color: var(--cs-white);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.5);
}

/* ---------- Page title centered (for Login/Register/FAQ/Contact) ---------- */
.cs-page-title {
    text-align: center;
    color: var(--cs-blue);
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 48px 0;
}

/* ---------- Logo brand icon centered ---------- */
.cs-brand-mark {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.cs-brand-mark img,
.cs-brand-mark svg {
    width: 48px;
    height: 56px;
}

.cs-page-lead {
    text-align: center;
    color: var(--cs-text);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 auto 32px;
    max-width: 540px;
}

/* ---------- Pill toggle (Register/Login switcher) ---------- */
.cs-pill-toggle {
    display: flex;
    background: var(--cs-bg);
    border-radius: 9999px;
    padding: 6px;
    max-width: 520px;
    margin: 0 auto 36px;
}
.cs-pill-toggle a {
    flex: 1;
    text-align: center;
    padding: 14px 16px;
    border-radius: 9999px;
    color: var(--cs-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
}
.cs-pill-toggle a.is-active {
    background: linear-gradient(90deg, var(--cs-btn-g1) 0%, var(--cs-btn-g2) 100%);
    color: var(--cs-white);
}

/* ---------- Forms ---------- */
.cs-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 540px;
    margin: 0 auto;
}
.cs-form--wide { max-width: 720px; }
.cs-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cs-form__row--single { grid-template-columns: 1fr; }
.cs-form__field { display: flex; flex-direction: column; gap: 6px; }
.cs-form__label {
    font-size: 13px;
    color: var(--cs-text);
    font-weight: 500;
}
.cs-form__label .req { color: var(--cs-blue); }
.cs-form__input,
.cs-form__textarea,
.cs-form__select {
    height: 48px;
    padding: 0 18px;
    background: var(--cs-bg);
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--cs-font-primary);
    color: var(--cs-text);
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}
.cs-form__textarea {
    height: 140px;
    padding: 14px 18px;
    resize: vertical;
}
.cs-form__input:focus,
.cs-form__textarea:focus,
.cs-form__select:focus {
    border-color: var(--cs-teal);
    background: var(--cs-white);
}

/* ---------- Consent checkboxes ---------- */
.cs-consent {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 8px 0 16px;
}
.cs-consent__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--cs-text);
}
.cs-consent__check {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    border-radius: 9999px;
    border: 2px solid var(--cs-divider);
    appearance: none;
    cursor: pointer;
    position: relative;
}
.cs-consent__check:checked {
    background: var(--cs-teal);
    border-color: var(--cs-teal);
}
.cs-consent__check:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 9999px;
    background: var(--cs-white);
}
.cs-consent__item a { color: var(--cs-blue); text-decoration: underline; }

/* ---------- Forgot password row ---------- */
.cs-form__row-aux {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin: -8px 0 8px;
}
.cs-form__row-aux a {
    color: var(--cs-blue);
    text-decoration: none;
    border-bottom: 1px dotted var(--cs-blue);
}

/* ---------- Submit button (gradient pill) ---------- */
.cs-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 48px;
    height: 52px;
    background: linear-gradient(90deg, var(--cs-btn-g1) 0%, var(--cs-btn-g2) 100%);
    color: var(--cs-white);
    border: none;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
}
.cs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,123,169,0.25);
    color: var(--cs-white);
}
.cs-btn-primary--block { width: 100%; }

.cs-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 32px;
    height: 52px;
    background: var(--cs-white);
    color: var(--cs-blue);
    border: 1px solid var(--cs-blue);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease;
}
.cs-btn-outline:hover { background: var(--cs-bg); color: var(--cs-blue); }
.cs-btn-outline img { width: 18px; height: 18px; }

.cs-btn-center { display: flex; justify-content: center; margin-top: 8px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.cs-contact-map {
    width: 100%;
    height: 360px;
    background: var(--cs-bg);
    margin-bottom: 56px;
}
.cs-contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.cs-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.cs-contact-col-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--cs-blue);
    text-align: center;
    margin: 0 0 24px 0;
}

/* Business address card (teal with pin) */
.cs-address-card {
    background: var(--cs-green);
    border-radius: 16px;
    padding: 20px 24px;
    color: var(--cs-white);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}
.cs-address-card__icon { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.cs-address-card strong { font-size: 16px; font-weight: 700; display: block; margin-bottom: 6px; }
.cs-address-card span { font-size: 13px; opacity: 0.95; }

/* Person card (teal with bottom photo cutout) */
.cs-person-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cs-person-card {
    background: var(--cs-blue);
    /* bottom half-circle hugging the photo (same card shape as the About team cards) */
    border-radius: 12px 12px 999px 999px;
    padding: 22px 18px 84%;
    color: var(--cs-white);
    position: relative;
    overflow: visible;
    text-align: left;
}
.cs-person-card__role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
    margin: 0 0 6px;
}
.cs-person-card__name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}
.cs-person-card__line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 5px;
}
.cs-person-card__line svg { width: 12px; height: 12px; }
.cs-person-card__line a { color: var(--cs-white); text-decoration: none; }
.cs-person-card__photo {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--cs-white);
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.cs-faq-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}
.cs-faq-sidebar {
    background: var(--cs-bg);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cs-faq-sidebar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 9999px;
    color: var(--cs-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
}
.cs-faq-sidebar a:hover { background: rgba(0,123,169,0.06); }
.cs-faq-sidebar a.is-active {
    background: linear-gradient(90deg, var(--cs-btn-g1) 0%, var(--cs-btn-g2) 100%);
    color: var(--cs-white);
}
.cs-faq-sidebar a .arrow {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.cs-faq-main h2.cs-faq__category-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--cs-blue);
    text-transform: uppercase;
    border-bottom: 1px solid var(--cs-divider);
    padding-bottom: 12px;
    margin: 0 0 16px;
}
.cs-faq-item {
    border-bottom: 1px solid var(--cs-divider);
    padding: 20px 0;
}
.cs-faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-blue);
    list-style: none;
    gap: 16px;
}
.cs-faq-item__question::-webkit-details-marker { display: none; }
.cs-faq-item__question::marker { content: ''; }
.cs-faq-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--cs-btn-g1) 0%, var(--cs-btn-g2) 100%);
    color: var(--cs-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: transform .2s ease;
}
.cs-faq-item[open] .cs-faq-item__icon { transform: rotate(180deg); }
.cs-faq-item__answer {
    padding: 16px 0 0;
    color: var(--cs-text);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   ABOUT US PAGE
   ============================================================ */
.cs-about-content {
    max-width: 920px;
    margin: 0 auto 64px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--cs-text);
}
.cs-about-content p { margin: 0 0 16px 0; }
.cs-about-content strong { color: var(--cs-blue); }

/* Values section (same look as BEFORE YOU BUY but with 5 cols) */
.cs-values {
    background: linear-gradient(90deg, var(--cs-green) 0%, var(--cs-teal) 50%, var(--cs-blue) 100%);
    padding: 64px 0;
    color: var(--cs-white);
    margin-bottom: 64px;
}
.cs-values__title {
    text-align: center;
    color: var(--cs-white);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 40px 0;
}
.cs-values__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.cs-value-card {
    background: var(--cs-white);
    border-radius: 200px;
    padding: 28px 18px;
    text-align: center;
    color: var(--cs-blue);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.cs-value-card__icon {
    width: 40px;
    height: 40px;
    color: var(--cs-teal);
}
.cs-value-card__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cs-blue);
    line-height: 1.2;
    margin: 0;
}
.cs-value-card__body { font-size: 12px; color: var(--cs-text); line-height: 1.4; }

/* Founders */
.cs-founders__title,
.cs-team__title,
.cs-certifications__title {
    text-align: center;
    color: var(--cs-blue);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 32px;
}
.cs-founder {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 48px;
}
.cs-founder--reverse { grid-template-columns: 1fr 200px; }
.cs-founder__photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--cs-bg);
}
.cs-founder__body h4 { color: var(--cs-blue); font-size: 22px; margin: 0 0 12px; }
.cs-founder__body p { font-size: 14px; line-height: 1.6; color: var(--cs-text); }

/* Team grid */
.cs-team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 64px;
    padding: 0 24px;
}
.cs-team-card {
    background: var(--cs-teal);
    border-radius: 100px 100px 16px 16px;
    padding: 20px 16px 60px;
    color: var(--cs-white);
    text-align: center;
    position: relative;
}
.cs-team-card__name { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.cs-team-card__role { font-size: 11px; opacity: 0.9; margin: 0; }
.cs-team-card__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cs-white);
    margin: 12px auto 0;
}

/* Certifications */
.cs-certifications-row {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.cs-certifications-row > div {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--cs-divider);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .cs-page-title { font-size: 28px; }
    .cs-contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .cs-faq-grid { grid-template-columns: 1fr; gap: 24px; }
    .cs-values__grid { grid-template-columns: repeat(2, 1fr); }
    .cs-team-grid { grid-template-columns: repeat(3, 1fr); }
    .cs-founder, .cs-founder--reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cs-founder__photo { margin: 0 auto; }
}
@media (max-width: 575px) {
    .cs-form__row { grid-template-columns: 1fr; }
    .cs-pill-toggle { max-width: 100%; }
    .cs-person-grid { grid-template-columns: 1fr; }
    .cs-team-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-values__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   About page hero — light gray bg, blue title (Figma 238:759)
   ============================================================ */
.cs-about-hero {
    background: var(--cs-bg) !important;
    padding: 56px 0 !important;
}
.cs-about-hero .cs-page__hero-container {
    align-items: center;
    justify-content: space-between;
}
.cs-about-hero__title {
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500 !important;
    font-size: 48px !important;
    color: var(--cs-blue) !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    letter-spacing: normal !important;
}
.cs-about-hero__crumb {
    color: var(--cs-text-light) !important;
    font-size: 13px !important;
}
.cs-about-hero__crumb a {
    color: var(--cs-blue) !important;
    border-bottom: 1px dotted var(--cs-blue);
}

/* Team grid spacing */
.cs-team-grid {
    margin-top: 24px !important;
    margin-bottom: 64px !important;
}
.cs-team-card__photo {
    background: var(--cs-divider);
}

/* Certifications row */
.cs-certifications-row > div {
    background: var(--cs-divider);
}

/* Brand mark above login/register form — real ChemSmog swirl */
.cs-brand-mark img {
    width: 52px;
    height: auto;
    display: block;
}
/* Login button: same width as the Continue with Google button below (not full-width) */
.cs-btn-login,
.cs-page .cs-btn-outline {
    width: 300px;
    max-width: 100%;
    min-width: 0;
    padding: 0 24px !important;
}

/* Contact person card avatar (bottom-right circle, Figma) */
.cs-person-card__avatar {
    position: absolute;
    /* photo = ~59% of the card width, ~17% from the bottom edge (mockup proportions) */
    bottom: 0;
    margin-bottom: 17%;
    left: 50%;
    transform: translateX(-50%);
    width: 59%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 4px solid var(--cs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cs-white);
    overflow: hidden;
}
.cs-person-card__avatar svg { width: 52px; height: 52px; }
.cs-person-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cs-person-card__line a { color: var(--cs-white) !important; text-decoration: none; }


/* Contact person card — Figma exact typography */
.cs-person-card__role {
    font-family: 'Fredoka', sans-serif !important;
    font-size: 12px !important;
    text-transform: capitalize !important;
    opacity: 0.95 !important;
    margin: 0 0 6px !important;
    color: var(--cs-white) !important;
}
.cs-person-card__name {
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500 !important;
    font-size: 17px !important;
    margin: 0 0 12px !important;
    color: var(--cs-white) !important;
}
.cs-person-card__line {
    font-family: 'Fredoka', sans-serif !important;
    font-size: 13px !important;
    color: var(--cs-white) !important;
    margin-bottom: 6px !important;
}

/* reCAPTCHA widget spacing on auth forms */
.cs-recaptcha { margin: 6px 0 18px; }
.cs-form .cs-recaptcha, .cs-btn-center + .cs-recaptcha { display: flex; justify-content: center; }
.cs-recaptcha__err { color: #b05656; font-size: 13px; margin: 6px 0 0; text-align: center; }
/* Login: when the reCAPTCHA shares the button row, stack it above the
   button (centered) to match the register form layout. */
.cs-btn-center:has(.cs-recaptcha) { flex-direction: column; align-items: center; gap: 14px; }
.cs-btn-center:has(.cs-recaptcha) .cs-recaptcha { margin: 0; }
