/* ==========================================================================
   Vegan Shopping Centre: Newsletter Signup Strip & Thank-You Card
   Brand Colours:
     Main Forest Green: #14532D
     Decorative Circle: #1E6B3F
     Lime-Green Accent: #B6E36B
   ========================================================================== */

.vsc-signup *,
.vsc-modal * {
    box-sizing: border-box;
    font-family: inherit;
    /* Uses site's existing Kadence fonts - zero extra font loading */
}

.vsc-modal[hidden] {
    display: none;
}

/* ==========================================================================
   1. Shared Base Form Elements
   ========================================================================== */
.vsc-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin: 0;
}

.vsc-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: -2px;
}

.vsc-input-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* 16px+ font size ensures iPhones/iOS Safari do NOT auto-zoom */
.vsc-input {
    flex: 1;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    background: #FFFFFF;
    color: #1F2937;
    font-size: 16px;
    outline: none;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vsc-input::placeholder {
    color: #8A948E;
}

.vsc-input:focus {
    outline: 3px solid #B6E36B;
    outline-offset: 1px;
}

.vsc-input.has-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
}

.vsc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.vsc-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.vsc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.4;
    cursor: pointer;
    margin-top: 2px;
}

.vsc-check input {
    margin: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.vsc-fine {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
}

.vsc-fine a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Error Alert (Positioned absolutely so it NEVER moves, shifts, or resizes the form) */
.vsc-error {
    position: absolute;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 6px 12px;
    border-radius: 6px;
    background: #FDE8E8;
    color: #7A1414;
    font-size: 13px;
    line-height: 1.35;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    animation: vsc-shake 0.3s ease-in-out;
}

@keyframes vsc-shake {

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

    20%,
    60% {
        transform: translateX(-4px);
    }

    40%,
    80% {
        transform: translateX(4px);
    }
}

/* Bot Trap Field (hidden offscreen) */
.vsc-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Mobile-only elements hidden by default (desktop) */
.vsc-strip__hero,
.vsc-eyebrow {
    display: none;
}

/* ==========================================================================
   2. Desktop Signup Banner (>= 861px) - Screenshot 3
   ========================================================================== */
@media (min-width: 861px) {
    .vsc-strip {
        position: relative;
        overflow: hidden;
        width: 100%;
        min-height: 270px;
        padding: 48px 7.5%;
        background-color: #14532D;
        color: #FFFFFF;
        display: flex;
        align-items: center;
        border-radius: 18px;
    }

    /* Oversized decorative circles */
    .vsc-strip::before {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background-color: #1E6B3F;
        opacity: 0.85;
        top: -180px;
        right: -70px;
        pointer-events: none;
        z-index: 0;
    }

    .vsc-strip::after {
        content: "";
        position: absolute;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background-color: #B6E36B;
        opacity: 0.95;
        bottom: -60px;
        left: 2%;
        pointer-events: none;
        z-index: 0;
    }

    .vsc-strip__card {
        width: 100%;
        display: contents;
    }

    .vsc-strip__hero,
    .vsc-eyebrow {
        display: none;
    }

    .vsc-strip__inner {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 48px;
        align-items: center;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .vsc-strip__text h2 {
        margin: 0 0 12px;
        font-size: 38px;
        line-height: 1.15;
        font-weight: 800;
        color: #FFFFFF;
        letter-spacing: -0.02em;
    }

    .vsc-strip__desc {
        margin: 0;
        font-size: 16px;
        line-height: 1.55;
        color: #E2ECE5;
        max-width: 500px;
    }

    .vsc-strip .vsc-label {
        color: #FFFFFF;
    }

    .vsc-strip .vsc-input {
        border: 1px solid transparent;
    }

    .vsc-strip .vsc-btn {
        background: #B6E36B;
        color: #14532D;
    }

    .vsc-strip .vsc-btn:hover {
        background: #C7EE82;
        color: #14532D;
    }

    .vsc-strip .vsc-check {
        color: #FFFFFF;
    }

    .vsc-strip .vsc-check input {
        accent-color: #B6E36B;
    }

    .vsc-strip .vsc-fine {
        color: rgba(255, 255, 255, 0.88);
    }

    .vsc-strip .vsc-fine a {
        color: #FFFFFF;
    }

    .vsc-strip .vsc-fine a:hover {
        color: #B6E36B;
    }

    .vsc-strip .vsc-error {
        bottom: -32px;
    }
}

/* ==========================================================================
   3. Mobile Signup Card (<= 860px) - Screenshot 4
   ========================================================================== */
@media (max-width: 860px) {
    .vsc-strip {
        padding: 32px 16px;
        background-color: transparent;
        min-height: auto;
        display: block;
    }

    .vsc-strip__card {
        display: block;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        border-radius: 16px;
        overflow: hidden;
        background: #FFFFFF;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid #E5E7EB;
    }

    /* Mobile Hero Header with 3 SVG tiles */
    .vsc-strip__hero {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        height: 136px;
        overflow: hidden;
        background: #14532D;
    }

    .vsc-strip__hero::before {
        content: "";
        position: absolute;
        width: 170px;
        height: 170px;
        border-radius: 50%;
        background: #1E6B3F;
        top: -56px;
        right: -36px;
        pointer-events: none;
    }

    .vsc-strip__hero::after {
        content: "";
        position: absolute;
        width: 96px;
        height: 96px;
        border-radius: 50%;
        background: #B6E36B;
        bottom: -34px;
        left: -16px;
        opacity: 0.9;
        pointer-events: none;
    }

    .vsc-strip__inner {
        display: block;
        padding: 24px 20px 28px;
        background: #FFFFFF;
        max-width: 100%;
    }

    .vsc-eyebrow {
        display: block;
        margin: 0 !important;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #14532D;
    }

    .vsc-strip__text h2 {
        color: #14241A;
        font-size: 26px;
        line-height: 1.15;
        font-weight: 800;
        margin: 0 0 10px 0;
    }

    .vsc-strip__desc {
        color: #4B5A50;
        font-size: 15px;
        line-height: 1.5;
        margin: 0 0 18px 0;
    }

    .vsc-strip .vsc-label {
        color: #14241A;
    }

    .vsc-strip .vsc-input-row {
        flex-direction: column;
        gap: 12px;
    }

    .vsc-strip .vsc-input {
        border: 1px solid #CFD8D2;
        background: #FFFFFF;
        color: #1F2937;
    }

    .vsc-strip .vsc-check {
        color: #2D3A32;
        font-size: 14px;
    }

    .vsc-strip .vsc-check input {
        accent-color: #14532D;
    }

    .vsc-strip .vsc-btn {
        width: 100%;
        min-height: 50px;
        background: #14532D;
        color: #FFFFFF;
        font-weight: 800;
        border-radius: 10px;
    }

    .vsc-strip .vsc-btn:hover {
        background: #0F3F22;
        color: #FFFFFF;
    }

    .vsc-strip .vsc-fine {
        color: #5B6A61;
        font-size: 12.5px;
    }

    .vsc-strip .vsc-fine a {
        color: #14532D;
    }

    .vsc-strip .vsc-form {
        padding-bottom: 42px;
    }

    .vsc-strip .vsc-error {
        bottom: 0;
    }
}

/* ==========================================================================
   4. Thank-You / Success Screen ("You're in!") - Screenshots 1 & 2
   ========================================================================== */
html.vsc-lock {
    overflow: hidden;
}

.vsc-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.vsc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 28, 16, 0.65);
    backdrop-filter: blur(2px);
}

.vsc-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    outline: none;
    z-index: 2;
}

/* Green Header Hero Area (Confirmation Modal) */
.vsc-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 136px;
    overflow: hidden;
    background: #14532D;
}

.vsc-hero::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: #1E6B3F;
    top: -56px;
    right: -36px;
    pointer-events: none;
}

.vsc-hero::after {
    content: "";
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #B6E36B;
    bottom: -34px;
    left: -16px;
    opacity: 0.9;
    pointer-events: none;
}

/* 3 White Tiles on Header */
.vsc-tile {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #FFFFFF;
    color: #14532D;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.vsc-tile--left {
    transform: rotate(-8deg);
}

.vsc-tile--mid {
    border-radius: 50%;
}

.vsc-tile--right {
    transform: rotate(8deg);
}

/* Centered White Circle with Checkmark */
.vsc-check-circle {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #14532D;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* White Content Area */
.vsc-body {
    padding: 26px 24px 28px;
    text-align: left;
    color: #1F2937;
}

.vsc-title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
    color: #14532D;
    letter-spacing: -0.01em;
}

.vsc-lead {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #4B5A50;
}

.vsc-btn--dark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    text-align: center;
    padding: 12px 20px;
    background: #14532D;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 18px;
    transition: background-color 0.15s ease;
}

.vsc-btn--dark:hover {
    background: #0F3F22;
    color: #FFFFFF;
}

/* Desktop Split View for Confirmation Screen (Screenshot 2) */
@media (min-width: 720px) {
    .vsc-modal__dialog {
        max-width: 720px;
        display: grid;
        grid-template-columns: 42% minmax(0, 1fr);
        min-height: 300px;
        border-radius: 20px;
        overflow: hidden;
    }

    .vsc-hero {
        height: 100%;
        min-height: 300px;
    }

    .vsc-hero::before {
        width: 220px;
        height: 220px;
        top: -70px;
        right: -40px;
    }

    .vsc-hero::after {
        width: 120px;
        height: 120px;
        bottom: -35px;
        left: -15px;
    }

    .vsc-check-circle {
        width: 90px;
        height: 90px;
    }

    .vsc-body {
        align-self: center;
        padding: 36px 38px;
    }

    .vsc-btn--dark {
        width: auto;
        display: inline-flex;
        padding: 0 28px;
    }
}