/* Barrington 10% Off - Based on signup.md original design */
:root {
    --navy: #1C294A;
    --navy2: #051E44;
    --navy3: #162240;
    --white: #fff;
    --gray: #ccc;
    --pad: 24px;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0,0,0,.18);
    --desktop-max-w: 50vw;
    --desktop-max-h: 50vh;
}

/* Overlay */
.nls-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.38);
    z-index: 99998;
    display: none;
}

.nls-popup-wrapper.nls-active .nls-overlay {
    display: block;
}

/* Modal positioning */
.nls-modal-content {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 10px;
    pointer-events: none;
}

.nls-popup-wrapper.nls-active .nls-modal-content {
    pointer-events: auto;
}

/* Card */
.nls-step {
    width: min(92vw, var(--desktop-max-w));
    max-height: min(90vh, var(--desktop-max-h));
    background: #F7FAFD;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Image side - LEFT on desktop */
.nls-image-container {
    background-size: cover;
    background-position: center;
    min-height: 320px;
    grid-column: 1;
}

.nls-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content side - RIGHT on desktop */
.nls-content {
    padding: clamp(18px, 3vw, 36px);
    display: grid;
    align-content: center;
    gap: 14px;
    background: #F7FAFD;
    grid-column: 2;
}

/* Close button */
.nls-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e8eef4;
    color: #223;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10;
}

.nls-close:hover {
    background: #f9fafb;
}

/* Logo */
.nls-logo {
    width: 140px;
    margin: 0 auto 8px;
    display: block;
}

.nls-logo img {
    width: 100%;
    height: auto;
}

/* Typography */
.nls-content h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.1;
    color: #111;
    font-weight: 600;
    margin: 0;
}

.nls-content p {
    color: #5a6476;
    margin: 0;
}

/* Form inputs */
.nls-input {
    width: 100%;
    border: 1px solid #e6ebf2;
    border-radius: 999px;
    background: #fff;
    padding: 13px 16px;
    font-size: 16px;
}

/* Buttons */
.nls-button {
    border: 0;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    padding: 13px 22px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.nls-button:hover {
    background: var(--navy2);
}

.nls-button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.nls-skip-link {
    background: transparent;
    border: none;
    color: #5a6476;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
}

/* Coupon */
.nls-coupon-code {
    display: inline-block;
    padding: 10px 16px;
    background: #fff;
    border: 2px dashed var(--navy);
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: .6px;
    color: var(--navy3);
}

.nls-success .nls-button {
    display: inline-block;
    background: var(--navy3);
    color: #fff;
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
}

/* Checkbox */
.nls-checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: #39465a;
}

.nls-checkbox-label input {
    margin-top: 4px;
}

/* Step visibility */
.nls-step[data-step="2"],
.nls-step[data-step="3"] {
    display: none;
}

/* Teaser & bottom bar */
.nls-teaser-pill {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 99990;
    display: none;
    align-items: center;
    gap: 10px;
    background: var(--navy3);
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-weight: 600;
}

.nls-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99980;
    background: var(--navy3);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 15px;
}

.nls-bottom-bar .nls-coupon-code {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .nls-step {
        grid-template-columns: 1fr;
        width: 92vw;
        max-height: 78vh;
    }
    
    /* Content on TOP for mobile */
    .nls-content {
        grid-column: 1;
        grid-row: 1;
    }
    
    /* Image on BOTTOM for mobile */
    .nls-image-container {
        min-height: 200px;
        grid-column: 1;
        grid-row: 2;
    }
}

/* Hide by default */
.nls-popup-wrapper {
    display: none;
}

.nls-popup-wrapper.nls-active {
    display: block;
}
