/**
 * InGoal Paywall — "The Crease" Design
 *
 * Dark, textured, sports-luxury paywall gate and inline subscribe form.
 * Gold accent against deep navy. Bebas Neue + Newsreader + Outfit fonts.
 *
 * Covers:
 * - .ingoal-paywall-crease (shared gate wrapper for SA + Pro Reads)
 * - .ig-paywall-form (inline subscribe form panel)
 *
 * @package InGoal
 * @since February 2026
 */

/* ============================================
   GATE — DARK ZONE
   ============================================ */

.ingoal-paywall-crease {
    background-color: #0a0f1e;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 48px 32px 56px;
    border-radius: 16px;
}

/* Film grain texture */
.ingoal-paywall-crease::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Crease-arc motif — barely visible half-circle */
.ingoal-paywall-crease::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 0 0 100px 100px;
    border-top: none;
    pointer-events: none;
    z-index: 1;
}

.ingoal-paywall-crease__inner {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}


/* ============================================
   BRAND MARK — "INGOAL" type mark
   ============================================ */

.ingoal-paywall-crease__brand {
    padding-top: 8px;
    margin-bottom: 28px;
}

.ingoal-paywall-crease__brand span {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 4px;
    color: #c8a44e;
    border-bottom: 1px solid rgba(200,164,78,0.3);
    padding-bottom: 4px;
}

/* ============================================
   HEADLINE / SUBHEADLINE / CREDIBILITY
   ============================================ */

.ingoal-paywall-crease__heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 44px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.05;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ingoal-paywall-crease__message {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 18px;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin: 0 auto 10px;
    max-width: 400px;
    line-height: 1.6;
}

.ingoal-paywall-crease__credibility {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: rgba(200,164,78,0.85);
    margin: 0 0 36px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   PRICE BLOCK
   ============================================ */

.ingoal-paywall-crease__price-block {
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 32px;
}

.ingoal-paywall-crease__price-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px;
    color: #fff;
    line-height: 1;
    letter-spacing: 2px;
}

.ingoal-paywall-crease__price-context {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin-top: 8px;
    letter-spacing: 1px;
}

.ingoal-paywall-crease__price-context .ingoal-paywall-crease__dot {
    margin: 0 8px;
    opacity: 0.3;
}

.ingoal-paywall-crease__price-note {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 15px;
    font-style: italic;
    color: rgba(200,164,78,0.8);
    margin-top: 6px;
}

/* ============================================
   CTA BUTTONS
   ============================================ */

.ingoal-paywall-crease__ctas {
    margin-bottom: 24px;
}

.ingoal-paywall-crease__btn {
    display: block;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ingoal-paywall-crease__btn--primary {
    background: #fff;
    color: #0a0f1e;
    border: none;
    padding: 18px;
    min-height: 56px;
    margin-bottom: 12px;
}

.ingoal-paywall-crease__btn--primary:hover {
    background: #c8a44e;
    color: #0a0f1e;
}

.ingoal-paywall-crease__btn--secondary {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
}

.ingoal-paywall-crease__btn--secondary:hover {
    border-color: rgba(200,164,78,0.4);
    color: #c8a44e;
}

/* ============================================
   LOGIN / SUPPORT LINKS
   ============================================ */

.ingoal-paywall-crease__login {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.ingoal-paywall-crease__login a {
    color: rgba(200,164,78,0.7);
    text-decoration: none;
    cursor: pointer;
}

.ingoal-paywall-crease__login a:hover {
    color: #c8a44e;
}

.ingoal-paywall-crease__logged-in {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.8;
}

.ingoal-paywall-crease__logged-in a {
    color: rgba(200,164,78,0.7);
    text-decoration: none;
}

.ingoal-paywall-crease__logged-in a:hover {
    color: #c8a44e;
}

.ingoal-paywall-crease__support {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin: 16px 0 0;
}

.ingoal-paywall-crease__support a {
    color: rgba(200,164,78,0.5);
    text-decoration: none;
}

.ingoal-paywall-crease__support a:hover {
    color: #c8a44e;
}


/* ============================================
   INLINE FORM — PANEL & SLIDE
   ============================================ */

.ig-paywall-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.3s ease;
    opacity: 0;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

.ig-paywall-form[data-expanded] {
    opacity: 1;
}

/* Slide-up entrance when form expands */
@keyframes igPaywallSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ig-paywall-form[data-expanded] .ig-paywall-form__body,
.ig-paywall-form[data-expanded] .ig-paywall-form__footer {
    animation: igPaywallSlideUp 0.4s ease;
}

/* ============================================
   FORM HEADER (removed — price shown in gate)
   ============================================ */

.ig-paywall-form__header {
    display: none;
}

/* ============================================
   STEP INDICATOR
   ============================================ */

.ig-paywall-form__steps {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    font-family: 'Outfit', sans-serif;
}

.ig-paywall-form__step {
    display: flex;
    align-items: center;
}

.ig-paywall-form__step--account {
    flex: 0 0 auto;
}

.ig-paywall-form__step--payment {
    flex: 1;
}

.ig-paywall-form__step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.ig-paywall-form__step--active .ig-paywall-form__step-num {
    background: #c8a44e;
    color: #0a0f1e;
}

.ig-paywall-form__step--inactive .ig-paywall-form__step-num {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
}

.ig-paywall-form__step-label {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ig-paywall-form__step--active .ig-paywall-form__step-label {
    color: #c8a44e;
    font-weight: 600;
}

.ig-paywall-form__step--inactive .ig-paywall-form__step-label {
    color: rgba(255,255,255,0.4);
    font-weight: 400;
}

.ig-paywall-form__step-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 0 16px;
}

/* ============================================
   FORM BODY — GRAVITY FORMS DARK OVERRIDES
   ============================================ */

.ig-paywall-form__body {
    padding: 0;
    text-align: left;
}

/* Wrapper reset — white text baseline for everything inside the form */
.ig-paywall-form .gform_wrapper {
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
}

.ig-paywall-form .gform_wrapper .gform_fields {
    grid-row-gap: 18px;
}

.ig-paywall-form .gform_wrapper .gfield {
    margin-bottom: 0;
}

/* Hide GF chrome */
.ig-paywall-form .gform_wrapper .gform_required_legend,
.ig-paywall-form .gform_required_legend,
.ig-paywall-form .gform_wrapper .gform_heading,
.ig-paywall-form .gform_wrapper .gform_description {
    display: none;
}

/* Hide GF progress bar — we use custom step indicator */
.ig-paywall-form .gf_progressbar_wrapper {
    display: none;
}

/* Hide product/price field — price already shown in gate above */
.ig-paywall-form .gform_wrapper .gfield--type-product,
.ig-paywall-form .gform_wrapper .gfield_price {
    display: none;
}

/* Labels */
.ig-paywall-form .gform_wrapper .gfield_label {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
}

.ig-paywall-form .gform_wrapper .gfield_required {
    color: #c8a44e;
}

/* Inputs — dark themed */
.ig-paywall-form .gform_wrapper input[type="text"],
.ig-paywall-form .gform_wrapper input[type="email"],
.ig-paywall-form .gform_wrapper input[type="password"],
.ig-paywall-form .gform_wrapper select {
    width: 100%;
    padding: 18px;
    min-height: 56px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 17px;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ig-paywall-form .gform_wrapper input::placeholder {
    color: rgba(255,255,255,0.35);
    opacity: 1;
}

.ig-paywall-form .gform_wrapper input:focus,
.ig-paywall-form .gform_wrapper select:focus {
    outline: none;
    border-color: #c8a44e;
}

/* Select dropdowns */
.ig-paywall-form .gform_wrapper select {
    -webkit-appearance: none;
    appearance: none;
}

/* Name fields side by side */
.ig-paywall-form .gform_wrapper .ginput_container_name {
    display: flex;
    gap: 12px;
}

.ig-paywall-form .gform_wrapper .ginput_container_name span {
    flex: 1;
}

.ig-paywall-form .gform_wrapper .ginput_container_name span label {
    display: none;
}

/* Password field */
.ig-paywall-form .gform_wrapper .gfield--type-password,
.ig-paywall-form .gform_wrapper .ginput_container_password {
    width: 100%;
}

.ig-paywall-form .gform_wrapper .ginput_container_password .ginput_password {
    display: flex;
    position: relative;
    width: 100%;
}

.ig-paywall-form .gform_wrapper .ginput_container_password input {
    flex: 1;
    padding-right: 50px;
}

.ig-paywall-form .gform_wrapper .gform_show_password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: rgba(255,255,255,0.3);
}

/* Page navigation buttons */
.ig-paywall-form .gform_page_footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 0;
    border-top: none;
}

.ig-paywall-form .gform_previous_button {
    flex: 0 0 auto;
    background: transparent;
    color: rgba(200,164,78,0.8);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 18px 28px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.ig-paywall-form .gform_previous_button:hover {
    border-color: rgba(200,164,78,0.3);
    color: #c8a44e;
}

/* Next / Submit — white CTA, gold on hover
   Override GF theme framework CSS custom properties to control button colors */
.ig-paywall-form .gform_wrapper.gform-theme--framework {
    --gf-ctrl-btn-bg-color-primary: #fff;
    --gf-ctrl-btn-color-primary: #0a0f1e;
    --gf-ctrl-btn-bg-color-hover-primary: #c8a44e;
    --gf-ctrl-btn-color-hover-primary: #0a0f1e;
    --gf-ctrl-btn-bg-color-focus-primary: #c8a44e;
    --gf-ctrl-btn-color-focus-primary: #0a0f1e;
    --gf-ctrl-btn-border-color-primary: transparent;
    --gf-ctrl-btn-border-color-hover-primary: transparent;
    --gf-ctrl-btn-border-color-focus-primary: #c8a44e;
    --gf-ctrl-btn-shadow: none;
    --gf-ctrl-btn-shadow-hover: none;
    --gf-ctrl-btn-radius: 6px;
    --gf-ctrl-btn-font-family: 'Outfit', sans-serif;
    --gf-ctrl-btn-font-size: 16px;
    --gf-ctrl-btn-font-weight: 600;
    --gf-ctrl-btn-letter-spacing: 2px;
    --gf-ctrl-btn-size: 60px;
}
.ingoal-paywall-crease .ig-paywall-form .gform_next_button,
.ingoal-paywall-crease .ig-paywall-form .gform_wrapper input[type="submit"],
.ingoal-paywall-crease .ig-paywall-form .gform_wrapper .gform_button,
.ingoal-paywall-crease .ig-paywall-form .gform_wrapper .gform_button.button {
    flex: 1;
    width: 100%;
    background: #fff;
    color: #0a0f1e;
    border: none;
    padding: 20px 24px;
    min-height: 60px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
    white-space: normal;
}

.ingoal-paywall-crease .ig-paywall-form .gform_next_button:hover,
.ingoal-paywall-crease .ig-paywall-form .gform_wrapper input[type="submit"]:hover,
.ingoal-paywall-crease .ig-paywall-form .gform_wrapper .gform_button:hover,
.ingoal-paywall-crease .ig-paywall-form .gform_wrapper .gform_button.button:hover {
    background: #c8a44e;
    color: #0a0f1e;
}

/* Field description */
.ig-paywall-form .gform_wrapper .gfield_description {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-top: 6px;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Product / pricing fields */
.ig-paywall-form .gform_wrapper .gfield_price .gfield_label,
.ig-paywall-form .gform_wrapper .gfield--type-product .gfield_label {
    font-size: 16px;
    color: #fff;
}

.ig-paywall-form .gform_wrapper .ginput_product_price_label,
.ig-paywall-form .gform_wrapper .ginput_product_price {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #fff;
}

.ig-paywall-form .gform_wrapper .ginput_product_price {
    font-weight: 700;
}

.ig-paywall-form .gform_wrapper .gfield_price .gfield_description,
.ig-paywall-form .gform_wrapper .gfield--type-product .gfield_description {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Total field */
.ig-paywall-form .gform_wrapper .ginput_container_total,
.ig-paywall-form .gform_wrapper .gfield--type-total .ginput_container {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
}

/* Stripe / card field text */
.ig-paywall-form .gform_wrapper .gfield--type-stripe_creditcard .gfield_label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* Hidden fields */
.ig-paywall-form .gform_wrapper .gfield_visibility_hidden {
    display: none;
}

/* GF footer */
.ig-paywall-form .gform_wrapper .gform_footer {
    margin-top: 24px;
    padding: 0;
}

/* GF page transition */
.ig-paywall-form .gform_page {
    animation: igPaywallSlideUp 0.3s ease forwards;
}

/* Validation errors — tuned for dark bg */
.ig-paywall-form .gform_wrapper .gfield_error input,
.ig-paywall-form .gform_wrapper .gfield_error select {
    border-color: #e53e3e;
}

.ig-paywall-form .gform_wrapper .validation_message {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #fc8181;
    margin-top: 6px;
}

.ig-paywall-form .gform_wrapper .validation_error {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #fc8181;
    border: 1px solid rgba(229,62,62,0.3);
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: rgba(229,62,62,0.08);
}

/* ============================================
   FORM FOOTER — SECURE, TERMS, BACK + LOGIN
   ============================================ */

.ig-paywall-form__footer {
    text-align: center;
    padding: 28px 0 0;
    margin-top: 0;
    border-top: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 2;
}

.ig-paywall-form__secure {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ig-paywall-form__lock-icon {
    flex-shrink: 0;
    stroke: rgba(255,255,255,0.25);
}

.ig-paywall-form__terms {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 2;
}

.ig-paywall-form__terms a {
    color: rgba(200,164,78,0.6);
    text-decoration: none;
}

.ig-paywall-form__terms a:hover {
    color: #c8a44e;
}

/* Collapse / back + login line */
.ig-paywall-form__collapse-line {
    margin-top: 4px;
}

.ig-paywall-form__collapse {
    display: inline;
    width: auto;
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(200,164,78,0.8);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.ig-paywall-form__collapse:hover {
    color: #c8a44e;
}

.ig-paywall-form__footer-sep {
    margin: 0 10px;
    opacity: 0.2;
    color: #fff;
}

.ig-paywall-form__footer-login {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.55);
}

.ig-paywall-form__footer-login a {
    color: rgba(200,164,78,0.8);
    text-decoration: none;
}

.ig-paywall-form__footer-login a:hover {
    color: #c8a44e;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.ig-paywall-form__success {
    text-align: center;
    padding: 40px 20px;
}

.ig-paywall-form__success h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ig-paywall-form__success p {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 15px;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .ingoal-paywall-crease {
        padding: 36px 20px 44px;
        border-radius: 12px;
    }

    .ingoal-paywall-crease__heading {
        font-size: 32px;
    }

    .ingoal-paywall-crease__message {
        font-size: 16px;
    }

    .ingoal-paywall-crease__price-amount {
        font-size: 44px;
    }

    .ingoal-paywall-crease__price-context {
        font-size: 14px;
    }

    .ingoal-paywall-crease__brand span {
        font-size: 16px;
    }

    .ig-paywall-form {
        max-width: 100%;
    }

    .ig-paywall-form__body {
        padding: 0;
    }

    /* Inputs: 16px prevents iOS zoom */
    .ig-paywall-form .gform_wrapper input[type="text"],
    .ig-paywall-form .gform_wrapper input[type="email"],
    .ig-paywall-form .gform_wrapper input[type="password"] {
        font-size: 16px;
    }

    .ig-paywall-form .gform_page_footer {
        flex-direction: column-reverse;
    }

    .ig-paywall-form .gform_previous_button {
        width: 100%;
        text-align: center;
    }

    .ig-paywall-form .gform_next_button {
        width: 100%;
    }
}

@media (max-width: 359px) {
    /* Stack name fields on very narrow screens */
    .ig-paywall-form .gform_wrapper .ginput_container_name {
        flex-direction: column;
        gap: 8px;
    }
}
