/* ==========================================================================
   Legal Pages (Privacy Policy, Terms of Service, SMS Policy)
   ========================================================================== */
.legal-page {
    position: relative;
    padding: 100px 0 100px;
    background:
        radial-gradient(ellipse at 8% 0, rgba(13, 92, 99, 0.055), transparent 46%),
        linear-gradient(180deg, #f4f9f8 0%, #ffffff 70%);
}

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 100px;
    background-color: #083b3f;
    color: #ffffff;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: linear-gradient(90deg, rgba(6, 40, 44, 0.97) 0%, rgba(8, 54, 59, 0.93) 0%, rgba(10, 68, 74, 0.78) 0%, rgba(13, 92, 99, 0.55) 82%), radial-gradient(760px 380px at 92% 12%, rgba(255, 255, 255, 0.10), transparent 62%), radial-gradient(760px 380px at 8% 88%, rgba(255, 255, 255, 0.10), transparent 62%);
    z-index: 0;
    pointer-events: none;
}

.legal-hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;

    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 78%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 78%);
    pointer-events: none;
}

.legal-hero>.container {
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   Page banner background images (public/images/*-bg.webp)
   -------------------------------------------------------------------------- */
.legal-hero--how-it-works {
    background-image: url('../images/how-it-works-bg.webp');
}

.legal-hero--team {
    background-image: url('../images/meet-our-team-bg.webp');
}

.legal-hero--services {
    background-image: url('../images/our-services-process-bg.webp');
}

.legal-hero--privacy {
    background-image: url('../images/privacy-policy-bg.webp');
}

.legal-hero--terms {
    background-image: url('../images/terms-of-service-bg.webp');
}

.legal-hero--sms {
    background-image: url('../images/terms-of-service-1-bg.webp');
}

.legal-hero--faq {
    background-image: url('../images/our-services-process-1-bg.webp');
}

.legal-hero--how-it-works,
.legal-hero--team,
.legal-hero--services,
.legal-hero--privacy,
.legal-hero--terms,
.legal-hero--sms,
.legal-hero--faq {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.legal-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.58);
}

.legal-breadcrumb a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-breadcrumb a:hover,
.legal-breadcrumb a:focus-visible {
    color: #ffffff;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    background-color: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #ffffff;
}

.legal-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--theme-orange);
    box-shadow: 0 0 0 4px rgba(222, 107, 31, 0.22);
    flex: 0 0 8px;
}

.legal-hero-title {
    margin: 22px 0 16px;
    font-family: 'Source Serif 4', serif;
    font-size: clamp(2.6rem, 4.8vw, 3.9rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.6px;
    color: #ffffff;
}

.legal-hero-lead {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.75;
}

.legal-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 28px;
}

.legal-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 500;
}

.legal-hero-chip i {
    color: #f0a46a;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Hero graphic (right side)
   -------------------------------------------------------------------------- */
.legal-hero-copy {
    max-width: 665px;
    margin: 0 auto;
    text-align: center;
}

.legal-hero-visual {
    display: none;
}

/* Center the hero content professionally */
.legal-hero {
    text-align: center;
}

.legal-hero .legal-hero-pattern {
    justify-content: center;
}

/* Ensure breadcrumb and other elements center properly */
.legal-breadcrumb {
    justify-content: center;
}

/* Meta chips center */
.legal-hero-meta {
    justify-content: center;
}

.legal-visual-card {
    position: relative;
    width: 100%;
    max-width: 390px;
    padding: 22px 22px 18px;
    border-radius: 22px;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 28px 60px rgba(2, 24, 26, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.legal-visual-card::before {
    content: '';
    position: absolute;
    inset: -30% -30% auto auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(222, 107, 31, 0.26) 0%, transparent 68%);
    pointer-events: none;
}

.legal-visual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 10%, transparent 76%);
    mask-image: radial-gradient(ellipse at 50% 35%, #000 10%, transparent 76%);
    pointer-events: none;
}

.legal-visual-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-visual-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
}

.legal-visual-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #f0a46a;
    animation: legalStatusPulse 2.6s ease-in-out infinite;
}

.legal-visual-code {
    font-family: 'Inter', sans-serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 1.1px;
    color: rgba(255, 255, 255, 0.42);
}

.legal-visual-art {
    position: relative;
    z-index: 2;
    margin: 2px 0 0;
}

.legal-visual-art svg {
    display: block;
    width: 100%;
    height: auto;
}

.legal-visual-foot {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-visual-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    font-weight: 500;
    white-space: nowrap;
}

.legal-visual-chip i {
    color: #f0a46a;
    font-size: 0.72rem;
}

.legal-visual-float {
    animation: legalFloat 7s ease-in-out infinite;
    transform-origin: center;
}

.legal-visual-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: legalPulse 4.2s ease-out infinite;
}

.legal-visual-orbit {
    transform-box: view-box;
    transform-origin: center;
    animation: legalSpin 46s linear infinite;
}

@keyframes legalFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes legalPulse {
    0% {
        opacity: 0.42;
        transform: scale(0.82);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(1.16);
    }
}

@keyframes legalSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes legalStatusPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(240, 164, 106, 0.45);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(240, 164, 106, 0);
    }
}

/* Hero graphic — tighter layouts */
@media (max-width: 1199.98px) {
    .legal-visual-card {
        max-width: 335px;
        padding: 18px 18px 15px;
    }

    .legal-hero-title {
        font-size: clamp(2.3rem, 4.2vw, 3.3rem);
    }
}

@media (prefers-reduced-motion: reduce) {

    .legal-visual-float,
    .legal-visual-pulse,
    .legal-visual-orbit,
    .legal-visual-status-dot {
        animation: none !important;
    }
}

/* --------------------------------------------------------------------------
   Layout + sticky contents
   -------------------------------------------------------------------------- */
.legal-layout {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    margin-top: 0;
    position: relative;
    z-index: 3;
}

.legal-sidebar {
    position: sticky;
    top: 74px;
}

.legal-toc {
    padding: 24px 22px;
    background-color: #ffffff;
    border: 1px solid #e2eceb;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(11, 61, 64, 0.07);
}

.legal-toc-title {
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--theme-orange);
}

.legal-toc nav {
    display: flex;
    flex-direction: column;
}

.legal-toc a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #4d5a5a;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    background-color: #f1f8f7;
    color: var(--theme-teal);
}

.legal-side-help {
    margin-top: 16px;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(160deg, #0d5c63 0%, #0a474c 100%);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(11, 61, 64, 0.18);
}

.legal-side-help-label {
    margin-bottom: 12px;
    font-family: 'Source Serif 4', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

.legal-side-help-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-side-help-link:hover,
.legal-side-help-link:focus-visible {
    color: #ffffff;
}

.legal-side-help-link i {
    color: #f0a46a;
}

.legal-side-help-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    line-height: 1.55;
}

.legal-side-help-note strong {
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Policy document
   -------------------------------------------------------------------------- */
.legal-article {
    padding: 42px 46px 38px;
    background-color: #ffffff;
    border: 1px solid #e2eceb;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(11, 61, 64, 0.07);
}

.legal-summary {
    padding: 24px 26px;
    border: 1px solid rgba(13, 92, 99, 0.16);
    border-radius: 14px;
    background: linear-gradient(180deg, #f2f9f8 0%, #ffffff 100%);
    margin-bottom: 30px;
}

.legal-summary-title {
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--theme-teal);
}

.legal-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.legal-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.legal-summary-item>i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--theme-orange);
    font-size: 1rem;
}

.legal-summary-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #7a8a8a;
}

.legal-summary-value {
    display: block;
    color: #334343;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
}

.legal-summary-privacy {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(13, 92, 99, 0.14);
    color: #3f5151;
    font-size: 0.82rem;
    line-height: 1.55;
}

.legal-summary-privacy i {
    margin-top: 3px;
    color: var(--theme-teal);
}

.legal-intro {
    margin-bottom: 0;
    color: #465353;
    font-size: 1rem;
    line-height: 1.8;
}

.legal-intro a,
.legal-section p a,
.legal-section .legal-check a {
    color: var(--theme-teal);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-summary-privacy a,
.legal-contact-foot a {
    color: var(--theme-teal);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-intro a:hover,
.legal-section p a:hover,
.legal-section .legal-check a:hover,
.legal-summary-privacy a:hover,
.legal-contact-foot a:hover {
    color: var(--theme-orange);
}

.legal-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #edf2f2;
    scroll-margin-top: 104px;
}

.legal-section h2 {
    display: flex;
    align-items: baseline;
    gap: 13px;
    margin-bottom: 16px;
    color: var(--theme-teal);
    font-size: 1.62rem;
    font-weight: 600;
    line-height: 1.3;
}

.legal-num {
    flex: 0 0 auto;
    padding: 2px 10px;
    border: 1px solid rgba(222, 107, 31, 0.35);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--theme-orange);
}

.legal-section p {
    color: #465353;
    font-size: 0.98rem;
    line-height: 1.8;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-check {
    margin: 4px 0 20px;
    padding: 0;
    list-style: none;
}

.legal-check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #465353;
    font-size: 0.97rem;
    line-height: 1.7;
}

.legal-check li:last-child {
    margin-bottom: 0;
}

.legal-check li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(13, 92, 99, 0.10);
    color: var(--theme-teal);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.legal-check li strong {
    color: #334343;
}

.legal-note,
.legal-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0;
    padding: 18px 20px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.legal-note {
    border-left: 4px solid var(--theme-teal);
    background-color: #f1f8f8;
    color: #3c4e4e;
}

.legal-note i {
    margin-top: 3px;
    color: var(--theme-teal);
    font-size: 1rem;
}

.legal-callout {
    display: block;
    border-left: 4px solid var(--theme-orange);
    background-color: #fff7f0;
    color: #4a423c;
}

.legal-callout-title {
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--theme-orange);
}

.legal-callout p {
    font-size: 0.94rem;
    line-height: 1.7;
    color: #4a423c;
}

.legal-contact-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.legal-contact-inline a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border: 1px solid rgba(13, 92, 99, 0.22);
    border-radius: 50px;
    background-color: #f4faf9;
    color: var(--theme-teal);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.legal-contact-inline a:hover,
.legal-contact-inline a:focus-visible {
    background-color: var(--theme-teal);
    border-color: var(--theme-teal);
    color: #ffffff;
}

/* Contact card */
.legal-contact-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-top: 22px;
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(140deg, #0d5c63 0%, #0a474c 100%);
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(11, 61, 64, 0.16);
}

.legal-contact-card-body {
    flex: 1 1 300px;
}

.legal-contact-card-body h3 {
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 1.45rem;
}

.legal-contact-card-body p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
}

.legal-contact-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 14px 0;
}

.legal-contact-card-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.legal-contact-card-links a:hover,
.legal-contact-card-links a:focus-visible {
    color: #f7c9a6;
}

.legal-contact-card-links i {
    color: #f0a46a;
}

.legal-contact-card-hours {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    line-height: 1.65;
}

.legal-contact-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 50px;
    background-color: transparent;
    color: #ffffff;
    font-weight: 600;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.legal-btn-ghost:hover,
.legal-btn-ghost:focus {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--theme-teal);
}

.legal-contact-foot {
    margin-top: 20px;
    color: #6a7878;
    font-size: 0.82rem;
    line-height: 1.65;
    text-align: center;
}

.legal-contact-foot strong {
    color: var(--theme-teal);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .legal-article {
        padding: 38px 36px 34px;
    }
}

@media (max-width: 991.98px) {
    .legal-page {
        padding: 44px 0 70px;
    }

    .legal-hero {
        padding: 54px 0 72px;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-toc {
        padding: 20px;
    }

    .legal-toc nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 10px;
    }

    .legal-side-help {
        display: none;
    }

    .legal-article {
        padding: 34px 30px 32px;
    }

    .legal-section {
        scroll-margin-top: 92px;
    }
}

@media (max-width: 575.98px) {
    .legal-page {
        padding: 34px 0 58px;
    }

    .legal-hero {
        padding: 44px 0 66px;
    }

    .legal-hero-lead {
        font-size: 1rem;
    }

    .legal-hero-meta {
        gap: 8px;
    }

    .legal-hero-chip {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    .legal-layout {
        margin-top: 0;
    }

    .legal-toc nav {
        grid-template-columns: 1fr;
    }

    .legal-toc a {
        padding: 7px 8px;
        font-size: 0.84rem;
    }

    .legal-article {
        padding: 28px 22px 26px;
    }

    .legal-summary {
        padding: 20px;
    }

    .legal-summary-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .legal-section {
        margin-top: 26px;
        padding-top: 26px;
    }

    .legal-section h2 {
        gap: 10px;
        font-size: 1.36rem;
    }

    .legal-num {
        padding: 2px 8px;
        font-size: 0.66rem;
    }

    .legal-note,
    .legal-callout {
        padding: 15px 16px;
    }

    .legal-contact-card {
        padding: 24px 22px;
    }

    .legal-contact-card-actions {
        width: 100%;
    }

    .legal-contact-card-actions .btn {
        flex: 1 1 auto;
    }
}

/* ==========================================================================
   SMS OPT-IN PAGE
   ========================================================================== */

.sms-optin-page {
    position: relative;
    padding: 0 0 100px;
    margin-top: -80px;
    background:
        radial-gradient(ellipse at 8% 0, rgba(13, 92, 99, 0.055), transparent 46%),
        linear-gradient(180deg, transparent 0%, #f4f9f8 30%, #ffffff 100%);
    z-index: 2;
}

.sms-optin-wrap {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* ---- Summary block ---- */
.sms-summary {
    padding: 26px 28px;
    border: 1px solid rgba(13, 92, 99, 0.16);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbfa 100%);
    margin-bottom: 22px;
    box-shadow: 0 20px 48px rgba(11, 61, 64, 0.09);
}

.sms-summary-title {
    margin-bottom: 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--theme-teal);
}

.sms-summary-title i {
    color: var(--theme-orange);
}

.sms-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.sms-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.sms-summary-item > i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--theme-orange);
    font-size: 1rem;
}

.sms-summary-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #7a8a8a;
    margin-bottom: 2px;
}

.sms-summary-value {
    display: block;
    color: #334343;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ---- Form card ---- */
.sms-card {
    background: #ffffff;
    border: 1px solid #e2eceb;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(11, 61, 64, 0.10);
    overflow: hidden;
    position: relative;
}

.sms-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-teal) 0%, var(--theme-teal) 58%, var(--theme-orange) 58%, var(--theme-orange) 100%);
    z-index: 1;
}

.sms-card-header {
    padding: 32px 36px 20px;
    border-bottom: 1px solid #edf2f2;
}

.sms-card-title {
    margin: 0 0 6px;
    font-family: 'Source Serif 4', serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: #0b3d40;
    letter-spacing: -0.3px;
}

.sms-card-subtitle {
    margin: 0;
    font-size: 0.86rem;
    color: #6a7878;
    font-weight: 500;
}

.sms-card-body {
    padding: 28px 36px 34px;
}

/* ---- Fields ---- */
.sms-field {
    margin-bottom: 22px;
}

.sms-label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f363e;
    letter-spacing: 0.2px;
}

.sms-optional {
    color: #93a8ae;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0;
}

.sms-input {
    width: 100%;
    padding: 13px 15px;
    font-size: 1rem;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    border: 1.5px solid #d4e1e3;
    border-radius: 10px;
    background: #fbfdfd;
    color: #1f363e;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
    box-sizing: border-box;
}

.sms-input:hover {
    border-color: #b8cdd1;
}

.sms-input:focus {
    outline: none;
    border-color: var(--theme-teal);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 92, 99, 0.12);
}

.sms-input::placeholder {
    color: #a2b3b8;
}

/* Phone group */
.sms-phone-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d4e1e3;
    border-radius: 10px;
    background: #fbfdfd;
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.sms-phone-group:hover {
    border-color: #b8cdd1;
}

.sms-phone-group:focus-within {
    border-color: var(--theme-teal);
    box-shadow: 0 0 0 4px rgba(13, 92, 99, 0.12);
    background: #ffffff;
}

.sms-phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    background: #f1f7f7;
    border-right: 1.5px solid #d4e1e3;
    font-size: 1rem;
    font-weight: 600;
    color: #465353;
    font-family: 'Inter', sans-serif;
}

.sms-input--phone {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 13px 15px;
    flex: 1;
}

.sms-input--phone:hover {
    border-color: transparent;
}

.sms-input--phone:focus {
    box-shadow: none;
    background: transparent;
    border-color: transparent;
}

/* Help text */
.sms-help-text {
    margin-top: 7px;
    font-size: 0.78rem;
    color: #6a7878;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sms-help-text i {
    color: var(--theme-teal);
    font-size: 0.85rem;
}

/* Error text */
.sms-error-text {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 600;
    display: none;
}

.sms-error-text.d-none { display: none !important; }
.sms-error-text.d-block { display: block !important; }

/* ---- Consent box ---- */
.sms-consent {
    margin-top: 6px;
    margin-bottom: 22px;
}

.sms-consent-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border: 1.5px solid #d4e1e3;
    border-radius: 12px;
    background: #fbfdfd;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sms-consent-box:hover {
    border-color: #b8cdd1;
    background: #f8fbfb;
}

.sms-consent-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.sms-consent-check {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 1.5px solid #b8cdd1;
    border-radius: 5px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.sms-consent-check svg {
    width: 14px;
    height: 14px;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.sms-consent-input:checked ~ .sms-consent-check {
    background: var(--theme-teal);
    border-color: var(--theme-teal);
}

.sms-consent-input:checked ~ .sms-consent-check svg {
    opacity: 1;
    transform: scale(1);
}

.sms-consent-input:focus-visible ~ .sms-consent-check {
    box-shadow: 0 0 0 4px rgba(13, 92, 99, 0.18);
}

.sms-consent-box:has(.sms-consent-input:checked) {
    border-color: rgba(13, 92, 99, 0.4);
    background: #f4fbfa;
}

.sms-consent-copy {
    flex: 1;
    min-width: 0;
}

.sms-consent-heading {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0b3d40;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.1px;
}

.sms-consent-text {
    display: block;
    font-size: 0.84rem;
    color: #5a6868;
    line-height: 1.65;
    font-weight: 500;
}

.sms-consent-text strong {
    color: #1f363e;
    font-weight: 700;
}

.sms-link {
    color: var(--theme-teal);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.sms-link:hover {
    color: var(--theme-orange);
}

/* ---- Alert ---- */
.sms-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #7f1d1d;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.55;
}

.sms-alert i {
    color: #dc2626;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* ---- Submit button ---- */
.sms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, var(--theme-teal) 0%, #095f70 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    box-shadow: 0 10px 24px rgba(13, 92, 99, 0.24);
    letter-spacing: 0.2px;
}

.sms-btn:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(13, 92, 99, 0.32);
}

.sms-btn:active {
    transform: translateY(0);
}

.sms-btn i {
    font-size: 0.95em;
}

.sms-btn--ghost {
    background: transparent;
    color: var(--theme-teal);
    border: 1.5px solid rgba(13, 92, 99, 0.28);
    box-shadow: none;
    margin-top: 8px;
}

.sms-btn--ghost:hover {
    background: var(--theme-teal);
    color: #ffffff;
    border-color: var(--theme-teal);
    filter: none;
    box-shadow: 0 8px 20px rgba(13, 92, 99, 0.2);
}

/* ---- Trust row ---- */
.sms-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #edf2f2;
}

.sms-trust-row--stacked {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding-top: 24px;
}

.sms-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #5a6868;
    font-weight: 600;
}

.sms-trust-item i {
    color: var(--theme-teal);
    font-size: 0.88rem;
}

/* ---- Success state ---- */
.sms-card--success {
    text-align: center;
}

.sms-card--success .sms-card-body {
    padding: 48px 36px 40px;
}

.sms-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e9f7ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: #16a34a;
    box-shadow: 0 14px 32px rgba(22, 163, 74, 0.22);
    animation: smsSuccessPop 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes smsSuccessPop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.sms-success-title {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 1.9rem;
    color: #0b3d40;
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}

.sms-success-lead {
    font-size: 1rem;
    color: #465353;
    line-height: 1.75;
    font-weight: 500;
    margin: 0 auto 14px;
    max-width: 460px;
}

.sms-success-note {
    font-size: 0.9rem;
    color: #6a7878;
    font-weight: 500;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}

.sms-success-note strong {
    color: #1f363e;
    font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .sms-optin-page {
        margin-top: -50px;
        padding-bottom: 70px;
    }
    .sms-card-header {
        padding: 24px 22px 16px;
    }
    .sms-card-body {
        padding: 22px 22px 26px;
    }
    .sms-summary {
        padding: 20px 22px;
    }
    .sms-summary-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }
}

@media (max-width: 575.98px) {
    .sms-optin-page {
        margin-top: -40px;
        padding-bottom: 56px;
    }
    .sms-card-header {
        padding: 22px 18px 14px;
    }
    .sms-card-body {
        padding: 20px 18px 24px;
    }
    .sms-card-title {
        font-size: 1.32rem;
    }
    .sms-summary {
        padding: 18px;
    }
    .sms-consent-box {
        padding: 14px 15px;
        gap: 11px;
    }
    .sms-consent-heading {
        font-size: 0.98rem;
    }
    .sms-success-title {
        font-size: 1.6rem;
    }
    .sms-btn {
        padding: 13px 20px;
        font-size: 0.95rem;
    }
}