/**
 * Kinezco - Coming Soon Page Styles
 *
 * Pixel-perfect recreation of the Lovable design.
 * Self-contained — no external framework dependencies.
 *
 * @package Kinezco
 * @since   1.0.0
 */

/* ──────────────────────────────────────────────
   0. CSS Custom Properties
   ────────────────────────────────────────────── */
:root {
    --cs-foreground: #0c0a09;
    --cs-foreground-hsl: 20, 14%, 4%;
    --cs-accent: #8fa87e;
    --cs-white: #ffffff;
    --cs-transition-fast: 200ms;
    --cs-transition-mid: 500ms;
    --cs-transition-slow: 1000ms;
    --cs-transition-slower: 1200ms;
    --cs-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ──────────────────────────────────────────────
   1. Reset & Base (scoped to .cs-page)
   ────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cs-page {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
        'Noto Sans', sans-serif;
    line-height: 1.5;
    color: var(--cs-white);
}

/* ──────────────────────────────────────────────
   2. Full-page Container
   ────────────────────────────────────────────── */
.cs-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background-color: var(--cs-foreground);
}

/* ──────────────────────────────────────────────
   3. Background Layers
   ────────────────────────────────────────────── */
.cs-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cs-bg__image {
    width: 115%;
    height: 115%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    opacity: 0.35;
    display: block;
    filter: saturate(0.6) contrast(1.1);
    animation: cs-bg-drift 30s ease-in-out infinite alternate;
}

.cs-bg__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        hsla(var(--cs-foreground-hsl), 0.60) 0%,
        hsla(var(--cs-foreground-hsl), 0.40) 50%,
        hsla(var(--cs-foreground-hsl), 0.90) 100%
    );
}

.cs-bg__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        hsl(var(--cs-foreground-hsl)) 75%
    );
}

/* ──────────────────────────────────────────────
   4. Navigation
   ────────────────────────────────────────────── */
.cs-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem;   /* py-6 px-6 */
}

.cs-nav__link {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color var(--cs-transition-mid) ease;
}

.cs-nav__link:hover {
    color: rgba(255, 255, 255, 0.6);
}

.cs-nav__meta {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}

/* ──────────────────────────────────────────────
   5. Main Content Area
   ────────────────────────────────────────────── */
.cs-main {
    position: relative;
    z-index: 10;
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem 3rem;
    gap: 0;
}

/* ──────────────────────────────────────────────
   6. Decorative Vertical Line
   ────────────────────────────────────────────── */
.cs-line {
    width: 1px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 2.5rem;     /* mb-10 */
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    animation: cs-line-in 1s var(--cs-ease-out) 0.2s forwards;
}

/* ──────────────────────────────────────────────
   7. Logo / Heading
   ────────────────────────────────────────────── */
.cs-logo-wrap {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.cs-logo {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.01em;
    margin: 0;
    opacity: 0;
    transform: translateY(40px);
    animation: cs-slide-up 1.2s var(--cs-ease-out) 0.4s forwards;
}

.cs-logo__primary {
    color: var(--cs-white);
}

.cs-logo__accent {
    color: var(--cs-accent);
}

/* ──────────────────────────────────────────────
   8. Tagline
   ────────────────────────────────────────────── */
.cs-tagline-wrap {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.cs-tagline {
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    line-height: 1.8;
    letter-spacing: 0.04em;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: cs-slide-up 1s var(--cs-ease-out) 0.7s forwards;
}

/* ──────────────────────────────────────────────
   9. Email Form – Gravity Forms Overrides
   ────────────────────────────────────────────── */
.cs-form-wrap {
    width: 100%;
    max-width: 28rem;          /* max-w-md = 448px */
    opacity: 0;
    transform: translateY(24px);
    animation: cs-slide-up 1s var(--cs-ease-out) 0.9s forwards;
}

/* ---- Strip all GF default chrome ---- */
.cs-form-wrap .gform_wrapper,
.cs-form-wrap .gform_body,
.cs-form-wrap .gform_fields,
.cs-form-wrap .gfield,
.cs-form-wrap .gform_footer,
.cs-form-wrap .ginput_container {
    all: unset;
    display: block;
    box-sizing: border-box;
}

/* Hide labels, descriptions, validation container above the form */
.cs-form-wrap .gform_wrapper .gfield_label,
.cs-form-wrap .gform_wrapper .gfield_description,
.cs-form-wrap .gform_wrapper .gform_validation_errors,
.cs-form-wrap .gform_wrapper .validation_message,
.cs-form-wrap .gform_wrapper .gform_required_legend,
.cs-form-wrap .gform_wrapper .gfield_required {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ---- Pill container  ---- */
.cs-form-wrap .gform_wrapper form {
    all: unset;
    display: block;
    box-sizing: border-box;
}

.cs-form-wrap .gform_wrapper .gform_body {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 6px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Keep fields in a row inside the pill */
.cs-form-wrap .gform_wrapper .gform_fields {
    display: flex !important;
    align-items: center;
    flex: 1 1 0%;
    gap: 0;
    min-width: 0;
}

.cs-form-wrap .gform_wrapper .gfield {
    flex: 1 1 0%;
    min-width: 0;
}

.cs-form-wrap .gform_wrapper .ginput_container {
    display: flex;
    align-items: center;
}

/* ---- Email input ---- */
.cs-form-wrap .gform_wrapper input[type="text"],
.cs-form-wrap .gform_wrapper input[type="email"] {
    all: unset;
    display: block;
    box-sizing: border-box;
    flex: 1 1 0%;
    height: 3rem;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--cs-white) !important;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding-left: 1.25rem;
    padding-right: 0.75rem;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
        sans-serif;
    width: 100%;
    min-width: 0;
}

.cs-form-wrap .gform_wrapper input[type="text"]::placeholder,
.cs-form-wrap .gform_wrapper input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.cs-form-wrap .gform_wrapper input[type="text"]:focus,
.cs-form-wrap .gform_wrapper input[type="email"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* ---- Submit button – sits inside the pill ---- */
.cs-form-wrap .gform_wrapper .gform_footer,
.cs-form-wrap .gform_wrapper .gform_page_footer {
    all: unset;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
    /* Pull footer into the pill body visually */
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

.cs-form-wrap .gform_wrapper input[type="submit"],
.cs-form-wrap .gform_wrapper button[type="submit"],
.cs-form-wrap .gform_wrapper .gform_button {
    all: unset;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: 3rem;
    padding: 0 1.5rem;
    border-radius: 9999px !important;
    background-color: var(--cs-white) !important;
    color: var(--cs-foreground) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.025em;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition: all var(--cs-transition-fast) ease-out;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
        sans-serif;
    box-sizing: border-box;
}

.cs-form-wrap .gform_wrapper input[type="submit"]:hover,
.cs-form-wrap .gform_wrapper button[type="submit"]:hover,
.cs-form-wrap .gform_wrapper .gform_button:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.cs-form-wrap .gform_wrapper input[type="submit"]:active,
.cs-form-wrap .gform_wrapper button[type="submit"]:active,
.cs-form-wrap .gform_wrapper .gform_button:active {
    transform: scale(0.98);
}

.cs-form-wrap .gform_wrapper input[type="submit"]:focus-visible,
.cs-form-wrap .gform_wrapper button[type="submit"]:focus-visible,
.cs-form-wrap .gform_wrapper .gform_button:focus-visible {
    outline: 2px solid var(--cs-accent);
    outline-offset: 2px;
}

/* ---- Layout fix: make body relative so footer can absolute-position ---- */
.cs-form-wrap .gform_wrapper .gform_body {
    position: relative;
}

/* Right-pad the input so text doesn't go under the button */
.cs-form-wrap .gform_wrapper .gfield:last-child input {
    padding-right: 8.5rem;
}

/* ---- GF AJAX spinner ---- */
.cs-form-wrap .gform_wrapper .gform_ajax_spinner {
    display: none;
}

/* ---- Confirmation message ---- */
.cs-form-wrap .gform_confirmation_message {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-style: italic;
    letter-spacing: 0.02em;
    padding: 1rem 0;
}

/* ---- Validation error inline styling ---- */
.cs-form-wrap .gform_wrapper .gfield_error input {
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.5) !important;
    border-radius: 9999px;
}

/* ──────────────────────────────────────────────
   10. Vendor Early Access Button
   ────────────────────────────────────────────── */
.cs-vendor-wrap {
    margin-top: 0;
    opacity: 0;
    animation: cs-fade-in 1s var(--cs-ease-out) 1.1s forwards;
}

.cs-vendor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.125rem 3rem;
    border-radius: 9999px;
    border: 1px solid var(--cs-accent);
    background: var(--cs-accent);
    color: var(--cs-foreground);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep */
.cs-vendor-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.cs-vendor-btn:hover::before {
    left: 100%;
}

.cs-vendor-btn:hover {
    transform: translateY(-1px);
}

.cs-vendor-btn:active {
    transform: translateY(0) scale(0.98);
}

.cs-vendor-btn:focus-visible {
    outline: 2px solid var(--cs-accent);
    outline-offset: 2px;
}

.cs-vendor-btn__text {
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1;
}

/* ──────────────────────────────────────────────
   11. Bottom Decorative Divider
   ────────────────────────────────────────────── */
.cs-bottom {
    position: relative;
    z-index: 10;
    padding: 0 1.5rem 1.5rem;  /* px-6 pb-6 */
}

.cs-bottom__line {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    opacity: 0;
    animation: cs-fade-in 1s ease 1.4s forwards;
}

/* ──────────────────────────────────────────────
   11b. Social Links
   ────────────────────────────────────────────── */
.cs-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    opacity: 0;
    animation: cs-fade-in 1s ease 1.6s forwards;
}

.cs-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: all 0.4s ease;
}

.cs-social__link:hover {
    color: var(--cs-white);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.cs-social__link:active {
    transform: translateY(0) scale(0.96);
}

.cs-social__link:focus-visible {
    outline: 2px solid var(--cs-accent);
    outline-offset: 2px;
}

.cs-social__link svg {
    display: block;
}

/* ──────────────────────────────────────────────
   12. Vendor Modal
   ────────────────────────────────────────────── */
.cs-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cs-modal-overlay.is-visible {
    display: flex;
    opacity: 1;
}

.cs-modal-overlay.is-entering {
    display: flex;
}

.cs-modal {
    position: relative;
    width: 100%;
    max-width: 32rem;          /* 512px */
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(30, 30, 30, 0.75);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: transform 0.35s var(--cs-ease-out),
                opacity 0.35s ease;
}

.cs-modal-overlay.is-visible .cs-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cs-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.125rem;
    line-height: 1;
    font-family: inherit;
}

.cs-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--cs-white);
    border-color: rgba(255, 255, 255, 0.2);
}

.cs-modal__close:focus-visible {
    outline: 2px solid var(--cs-accent);
    outline-offset: 2px;
}

.cs-modal__title {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
        sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cs-white);
    margin: 0 0 0.5rem;
    letter-spacing: 0.015em;
}

.cs-modal__subtitle {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-style: normal;
    font-size: 1rem;
    color: var(--cs-white);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.cs-modal__form-placeholder {
    /* Gravity Forms shortcode renders here */
    min-height: 2rem;
}

/* ──────────────────────────────────────────────
   13. Keyframe Animations
   ────────────────────────────────────────────── */
@keyframes cs-bg-drift {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.05) translate(-2%, -1.5%);
    }
}

@keyframes cs-line-in {
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes cs-slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cs-fade-in {
    to {
        opacity: 1;
    }
}

/* ──────────────────────────────────────────────
   14. Responsive — xs (≤480px) Mobile-first fixes
   ────────────────────────────────────────────── */
@media (max-width: 480px) {
    .cs-main {
        padding: 0 1.25rem 2rem;
        justify-content: center;
    }

    .cs-logo-wrap {
        margin-bottom: 0.75rem;
    }

    .cs-logo {
        font-size: clamp(3rem, 15vw, 4.5rem);
    }

    .cs-tagline {
        font-size: 1.05rem;
        line-height: 1.6;
        text-align: center;
        padding: 0 0.25rem;
    }

    .cs-tagline-wrap {
        margin-bottom: 1.75rem;
    }

    .cs-vendor-btn {
        padding: 1rem 2.25rem;
    }

    .cs-vendor-btn__text {
        font-size: 12px;
        letter-spacing: 0.15em;
    }

    .cs-social {
        margin-top: 1.5rem;
    }

    .cs-social__link {
        width: 2.75rem;
        height: 2.75rem;
    }

    .cs-bottom {
        padding: 0 1rem 1rem;
    }

    /* Modal – sheet from bottom */
    .cs-modal-overlay {
        padding: 1rem;
        align-items: flex-end;
    }

    .cs-modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 1.25rem 1.25rem 0 0;
        padding: 2rem 1.5rem;
    }

    .cs-modal__title {
        font-size: 1.25rem;
    }

    .cs-modal__subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
}

/* ──────────────────────────────────────────────
   14b. Responsive — sm (≥640px)
   ────────────────────────────────────────────── */
@media (min-width: 640px) {
    .cs-nav {
        padding: 2rem 2.5rem;
    }

    .cs-main {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .cs-tagline {
        font-size: 1.4rem;
        line-height: 1.8;
    }

    .cs-bottom {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* ──────────────────────────────────────────────
   15. Responsive — lg (≥1024px)
   ────────────────────────────────────────────── */
@media (min-width: 1024px) {
    .cs-nav {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .cs-bottom {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* ──────────────────────────────────────────────
   15b. Responsive — Mobile touch targets & safe areas
   ────────────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .cs-social {
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
    }
}

/* ──────────────────────────────────────────────
   16. Reduced Motion
   ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .cs-line,
    .cs-logo,
    .cs-tagline,
    .cs-form-wrap,
    .cs-vendor-wrap,
    .cs-bottom__line {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .cs-modal,
    .cs-modal-overlay,
    .cs-form__btn,
    .cs-vendor-btn,
    .cs-nav__link {
        transition: none;
    }
}

/* ──────────────────────────────────────────────
   17. WordPress / Gravity Forms Overrides
   ────────────────────────────────────────────── */

/* Hide the admin bar on the coming-soon page (if logged in) */
.cs-page .admin-bar-fix {
    margin-top: 0;
}

/* Gravity Forms dark-mode integration for modal */
.cs-modal .gform_wrapper {
    color: rgba(255, 255, 255, 0.8);
}

/* Field spacing */
.cs-modal .gform_wrapper .gform_fields {
    display: flex !important;
    flex-direction: column;
    gap: 1.25rem;
}

.cs-modal .gform_wrapper .gfield {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Labels */
.cs-modal .gform_wrapper .gfield_label {
    display: block !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin-bottom: 0.5rem !important;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
}

/* Required asterisk */
.cs-modal .gform_wrapper .gfield_required {
    color: var(--cs-accent) !important;
}

/* Inputs, textareas, selects */
.cs-modal .gform_wrapper input[type="text"],
.cs-modal .gform_wrapper input[type="email"],
.cs-modal .gform_wrapper input[type="tel"],
.cs-modal .gform_wrapper input[type="url"],
.cs-modal .gform_wrapper input[type="number"],
.cs-modal .gform_wrapper textarea,
.cs-modal .gform_wrapper select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    color: var(--cs-white) !important;
    padding: 0.875rem 1rem !important;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.9375rem !important;
    width: 100% !important;
    transition: border-color 0.25s ease, background 0.25s ease !important;
    box-sizing: border-box !important;
}

.cs-modal .gform_wrapper input::placeholder,
.cs-modal .gform_wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
    font-style: italic;
}

.cs-modal .gform_wrapper input:focus,
.cs-modal .gform_wrapper textarea:focus,
.cs-modal .gform_wrapper select:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(143, 168, 126, 0.15) !important;
}

/* GF Theme Framework high-specificity input overrides */
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper input:is([type=text],[type=email],[type=tel],[type=url],[type=number]),
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper textarea,
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    color: var(--cs-white) !important;
    padding: 0.875rem 1rem !important;
    font-size: 0.9375rem !important;
    box-shadow: none !important;
}

.cs-modal .gform-theme.gform-theme--framework.gform_wrapper input:is([type=text],[type=email],[type=tel],[type=url],[type=number]):focus,
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper textarea:focus,
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper select:focus {
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(143, 168, 126, 0.15) !important;
}

/* Select fields – ensure selected text is visible */
.cs-modal .gform_wrapper select,
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper select {
    color: var(--cs-white) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px 8px !important;
    padding-right: 2.5rem !important;
}

.cs-modal .gform_wrapper select option,
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper select option {
    background: #1e1e1e !important;
    color: #ffffff !important;
    padding: 0.5rem !important;
}

.cs-modal .gform_wrapper select option:checked,
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper select option:checked {
    background: var(--cs-accent) !important;
    color: var(--cs-foreground) !important;
}

/* Validation legend / errors */
.cs-modal .gform_wrapper .gform_validation_errors {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-radius: 0.75rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1rem !important;
    font-size: 0.8125rem !important;
}

.cs-modal .gform_wrapper .gfield_error input,
.cs-modal .gform_wrapper .gfield_error textarea {
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.cs-modal .gform_wrapper .validation_message {
    color: rgba(239, 68, 68, 0.8) !important;
    font-size: 0.75rem !important;
    margin-top: 0.375rem !important;
}

/* Submit button footer spacing */
.cs-modal .gform_wrapper .gform_footer {
    margin-top: 1.5rem !important;
    padding: 0 !important;
}

.cs-modal .gform_wrapper input[type="submit"],
.cs-modal .gform_wrapper .gform_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3.25rem;
    padding: 0 2rem;
    border-radius: 9999px;
    background-color: var(--cs-accent);
    color: var(--cs-foreground);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.1s ease;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    margin-top: 0;
}

.cs-modal .gform_wrapper input[type="submit"]:hover,
.cs-modal .gform_wrapper .gform_button:hover {
    background-color: #7a9a6c;
}

.cs-modal .gform_wrapper input[type="submit"]:active,
.cs-modal .gform_wrapper .gform_button:active {
    transform: scale(0.98);
}

/* ---- GF Theme Framework high-specificity overrides for modal submit ---- */
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper input:is([type=submit],[type=button],[type=reset]),
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper input[type=submit].button.gform_button,
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper .button,
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper .gform-theme-button {
    background-color: var(--cs-accent) !important;
    color: var(--cs-foreground) !important;
    border: none !important;
    border-radius: 9999px !important;
    width: 100% !important;
    height: 3.25rem !important;
    padding: 0 2rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
    cursor: pointer !important;
    transition: background-color 0.25s ease, transform 0.1s ease !important;
    box-shadow: none !important;
}

.cs-modal .gform-theme.gform-theme--framework.gform_wrapper input:is([type=submit],[type=button],[type=reset]):hover,
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper input[type=submit].button.gform_button:hover,
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper .button:hover,
.cs-modal .gform-theme.gform-theme--framework.gform_wrapper .gform-theme-button:hover {
    background-color: #7a9a6c !important;
    color: var(--cs-foreground) !important;
}
