/* ============================================================
   email-popup.css — Ocea Serums Email Capture
   Deploy to: /assets/css/email-popup.css  (and /shop/assets/css/email-popup.css)
   ============================================================ */

/* ── Overlay ────────────────────────────────────────────────── */
#ocea-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#ocea-popup-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* ── Modal ──────────────────────────────────────────────────── */
#ocea-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.96);
    z-index: 9999;
    width: min(540px, calc(100vw - 2rem));
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

#ocea-popup.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

/* ── Layout: image + content side by side ───────────────────── */
.popup-inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
}

.popup-image {
    background: #2c2c2c;
    background-image: url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 380px;
    position: relative;
}

.popup-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(44,44,44,0.5) 0%, rgba(201,169,110,0.4) 100%);
}

.popup-image-text {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1rem;
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.popup-content {
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Close button ───────────────────────────────────────────── */
#ocea-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10000;
    background: rgba(255,255,255,0.85);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #555;
    transition: background 0.2s, color 0.2s;
}

#ocea-popup-close:hover {
    background: #c9a96e;
    color: white;
}

/* ── Content ────────────────────────────────────────────────── */
.popup-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c9a96e;
    margin-bottom: 0.5rem;
}

.popup-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.popup-subtext {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ── What you get list ──────────────────────────────────────── */
.popup-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.popup-benefits li {
    font-size: 0.82rem;
    color: #555;
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-benefits li::before {
    content: '✓';
    color: #c9a96e;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Form ───────────────────────────────────────────────────── */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.popup-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #d5ccc0;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #2c2c2c;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.popup-form input[type="email"]:focus {
    outline: none;
    border-color: #c9a96e;
}

.popup-form button {
    width: 100%;
    padding: 0.85rem;
    background: #2c2c2c;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s;
}

.popup-form button:hover {
    background: #c9a96e;
}

.popup-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.popup-disclaimer {
    font-size: 0.72rem;
    color: #bbb;
    text-align: center;
    margin-top: 0.5rem;
}

.popup-skip {
    font-size: 0.78rem;
    color: #aaa;
    text-align: center;
    margin-top: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
}

.popup-skip:hover { color: #777; }

.popup-success {
    text-align: center;
    padding: 1rem 0;
}

.popup-success .success-icon {
    font-size: 2.5rem;
    color: #c9a96e;
    margin-bottom: 0.5rem;
}

.popup-success h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.popup-success p {
    font-size: 0.85rem;
    color: #777;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .popup-inner { grid-template-columns: 1fr; }
    .popup-image { display: none; }
    .popup-content { padding: 2rem 1.5rem 1.5rem; }
    .popup-headline { font-size: 1.4rem; }
}
