/* ─────────────────────────────────────────────
   Woo Newsletter Opt-in — LabTrust Peptides
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

/* Popup overlay */
.wno-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(10, 22, 40, 0.58);
    opacity: 0;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}
.wno-overlay.wno-visible {
    display: flex;
    opacity: 1;
}
body.wno-popup-open {
    overflow: hidden;
}
.wno-popup {
    width: 100%;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.25s ease;
}
.wno-overlay.wno-visible .wno-popup {
    transform: translateY(0) scale(1);
}
.wno-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f0f4f8;
    color: #0a1628;
    font-size: 24px;
    line-height: 34px;
    cursor: pointer;
}
.wno-card { position: relative; }

/* Wrapper */
.wno-wrapper {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Card */
.wno-card {
    background: #ffffff;
    border: 1.5px solid #e0eaf4;
    border-radius: 20px;
    padding: 40px 40px 32px;
    box-shadow: 0 8px 40px rgba(13, 76, 126, 0.10);
    text-align: center;
}

/* Logo */
.wno-logo {
    margin-bottom: 20px;
}
.wno-logo img {
    height: 56px;
    width: auto;
    max-width: 100%;
}

/* Header */
.wno-header {
    margin-bottom: 20px;
}
.wno-eyebrow {
    display: inline-block;
    background: #f0f4f8;
    color: #0D4C7E;
    border: 1px solid #d0e0ef;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.wno-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 32px;
    line-height: 1.15;
    color: #0a1628;
    margin: 0 0 10px;
    font-weight: 400;
}
.wno-title em {
    color: #0D4C7E;
    font-style: italic;
}
.wno-subtitle {
    font-size: 14px;
    color: #444;
    line-height: 1.65;
    max-width: 380px;
    margin: 0 auto;
}

/* Badges */
.wno-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.wno-badge {
    background: #f0f4f8;
    color: #0D4C7E;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #d0e0ef;
    letter-spacing: 0.02em;
}

/* Fields */
.wno-field {
    margin-bottom: 16px;
    text-align: left;
}
.wno-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 6px;
}
.wno-required {
    color: #dc2626;
}
.wno-field input[type="text"],
.wno-field input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d0e0ef;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #0a1628;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.wno-field input[type="text"]:focus,
.wno-field input[type="email"]:focus {
    border-color: #0D4C7E;
    box-shadow: 0 0 0 3px rgba(13, 76, 126, 0.10);
    background: #ffffff;
}
.wno-field input[type="text"]::placeholder,
.wno-field input[type="email"]::placeholder {
    color: #aab4c0;
}

/* Checkbox */
.wno-field--checkbox {
    margin-top: 4px;
}
.wno-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.wno-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: #0D4C7E;
    cursor: pointer;
    border-radius: 4px;
}
.wno-checkbox-text {
    font-size: 12px;
    color: #444;
    line-height: 1.6;
}
.wno-checkbox-text a {
    color: #0D4C7E;
    text-decoration: underline;
}

/* Error message */
.wno-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    display: none;
    text-align: left;
}
.wno-error.wno-visible {
    display: block;
}

/* Submit button */
.wno-btn {
    width: 100%;
    background: #0D4C7E;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 15px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 4px;
    margin-bottom: 14px;
    transition: background 0.2s, transform 0.15s;
    position: relative;
}
.wno-btn:hover {
    background: #0a3a60;
    transform: translateY(-1px);
}
.wno-btn:active {
    transform: translateY(0);
}
.wno-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.wno-btn-loading {
    display: none;
}
.wno-btn.wno-loading .wno-btn-text {
    display: none;
}
.wno-btn.wno-loading .wno-btn-loading {
    display: inline;
}

/* GDPR note */
.wno-gdpr-note {
    font-size: 11px;
    color: #888;
    line-height: 1.6;
    text-align: center;
}

/* Success state */
.wno-success {
    padding: 24px 0 8px;
}
.wno-success-icon {
    width: 52px;
    height: 52px;
    background: #0D4C7E;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    line-height: 52px;
    margin: 0 auto 16px;
}
.wno-success h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    color: #0a1628;
    margin-bottom: 10px;
}
.wno-success p {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.7;
    margin-bottom: 6px;
}
.wno-success-note {
    font-size: 12px;
    color: #888;
}

/* Mobile */
@media (max-width: 520px) {
    .wno-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }
    .wno-title {
        font-size: 26px;
    }
    .wno-badges {
        gap: 6px;
    }
    .wno-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
}
