/* EPH Wedding Guide Lead Capture Modal — v2.0 */

/* ── Google Font: Great Vibes (cursive for heading) ── */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* ── Overlay ── */
#eph-wg-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#eph-wg-overlay.eph-wg-active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── Modal shell — photo fills the entire box ── */
#eph-wg-modal {
    position: relative;
    border-radius: 14px;
    width: 100%;
    max-width: 480px;
    min-height: 520px;
    overflow: hidden;
    box-shadow: 0 24px 72px rgba(0,0,0,0.35);
    animation: ephWGSlideIn 0.24s ease;
    display: flex;
    flex-direction: column;
}

@keyframes ephWGSlideIn {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Background photo layer ── */
#eph-wg-photo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #f5ede8; /* warm fallback when no photo set */
    z-index: 0;
}

/* Dark gradient so form text is always readable */
#eph-wg-photo-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.10) 0%,
        rgba(0,0,0,0.42) 45%,
        rgba(0,0,0,0.72) 100%
    );
}

/* ── Content sits above the photo ── */
#eph-wg-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 520px;
    padding: 32px 32px 36px;
    box-sizing: border-box;
}

/* ── Close button ── */
#eph-wg-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    padding: 0;
    z-index: 2;
    transition: background 0.15s;
}

#eph-wg-close:hover {
    background: rgba(255,255,255,0.30);
}

/* ── Heading in cursive ── */
#eph-wg-title {
    font-family: 'Great Vibes', cursive !important;
    font-size: 52px !important;
    font-weight: 400 !important;
    color: #fff !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    border: none !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.40);
    letter-spacing: 0.01em;
}

/* ── Sub-text ── */
#eph-wg-modal p.eph-wg-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.90);
    margin: 0 0 22px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.40);
}

/* ── Form fields ── */
#eph-wg-form .eph-wg-field {
    margin-bottom: 12px;
}

#eph-wg-form .eph-wg-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#eph-wg-form .eph-wg-field input {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.40);
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    transition: border-color 0.15s, background 0.15s;
    outline: none;
}

#eph-wg-form .eph-wg-field input:focus {
    border-color: #fff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.30);
}

#eph-wg-form .eph-wg-field input.eph-wg-error {
    border-color: #f6a4a3;
    box-shadow: 0 0 0 3px rgba(226,75,74,0.25);
}

#eph-wg-error-msg {
    display: none;
    font-size: 12px;
    color: #fecaca;
    margin-top: -6px;
    margin-bottom: 8px;
}

/* ── Submit button ── */
#eph-wg-submit {
    width: 100%;
    margin-top: 6px;
    padding: 13px;
    background: #fff;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.15s, transform 0.1s;
}

#eph-wg-submit:hover  { background: #f0e8e8; }
#eph-wg-submit:active { transform: scale(0.98); }
#eph-wg-submit:disabled { background: rgba(255,255,255,0.55); cursor: not-allowed; }

/* ── Success state ── */
#eph-wg-success {
    display: none;
    text-align: center;
    padding: 20px 0 10px;
}

#eph-wg-success .eph-wg-check {
    width: 58px;
    height: 58px;
    background: rgba(255,255,255,0.20);
    border: 2px solid rgba(255,255,255,0.60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

#eph-wg-success .eph-wg-check svg {
    width: 26px; height: 26px;
    stroke: #fff; fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#eph-wg-success h3 {
    font-family: 'Great Vibes', cursive !important;
    font-size: 36px !important;
    font-weight: 400 !important;
    color: #fff !important;
    margin: 0 0 8px !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.40);
}

#eph-wg-success p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.5;
}

/* ── Mobile ── */
@media (max-width: 520px) {
    #eph-wg-modal {
        border-radius: 12px;
        min-height: 480px;
    }
    #eph-wg-content {
        padding: 24px 20px 28px;
    }
    #eph-wg-title {
        font-size: 42px !important;
    }
}
