/* =============================================
   WooCommerce WhatsApp Lead Capture
   Styled for: The Nikah Corner
   Colors: Ivory, Deep Gold, Charcoal
   Fonts: Playfair Display + Lato
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;600;700&display=swap');

:root {
    --tnc-gold:       #b08d57;
    --tnc-gold-dark:  #8a6a38;
    --tnc-gold-light: #d4aa70;
    --tnc-ivory:      #fdf8f0;
    --tnc-cream:      #f5ede0;
    --tnc-charcoal:   #2c2c2c;
    --tnc-muted:      #7a6e62;
    --tnc-border:     #e2d3be;
    --tnc-white:      #ffffff;
    --tnc-error:      #b55252;
}

/* Overlay */
#wcwl-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 35, 24, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    animation: wcwlFadeIn 0.4s ease;
}

/* Popup */
#wcwl-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    width: min(500px, 94vw);
    background: var(--tnc-ivory);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(44, 30, 10, 0.28), 0 0 0 1px var(--tnc-border);
    font-family: 'Lato', sans-serif;
    animation: wcwlSlideUp 0.45s cubic-bezier(.22,1,.36,1) forwards;
}

/* Gold top stripe */
#wcwl-popup::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--tnc-gold-dark), var(--tnc-gold-light), var(--tnc-gold-dark));
}

.wcwl-inner {
    padding: 36px 40px 32px;
    text-align: center;
}

/* Ornamental line */
.wcwl-ornament {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 0 0 18px;
    color: var(--tnc-gold);
    font-size: 16px;
    letter-spacing: 5px;
}
.wcwl-ornament::before,
.wcwl-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
}
.wcwl-ornament::before {
    background: linear-gradient(to right, transparent, var(--tnc-gold-light));
}
.wcwl-ornament::after {
    background: linear-gradient(to left, transparent, var(--tnc-gold-light));
}

/* Badge */
.wcwl-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--tnc-gold), var(--tnc-gold-dark));
    color: var(--tnc-white);
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 2px;
    margin-bottom: 16px;
}

/* Heading */
#wcwl-popup-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tnc-charcoal);
    margin: 0 0 10px;
    line-height: 1.35;
}
#wcwl-popup-title em {
    color: var(--tnc-gold);
    font-style: italic;
}

/* Subtext */
.wcwl-sub {
    color: var(--tnc-muted);
    font-size: 0.93rem;
    font-weight: 400;
    line-height: 1.75;
    margin: 0 0 26px;
}
.wcwl-sub strong {
    color: var(--tnc-gold-dark);
    font-weight: 700;
}

/* Label */
.wcwl-label {
    display: block;
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--tnc-muted);
    margin-bottom: 8px;
}

/* Input group */
.wcwl-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--tnc-border);
    border-radius: 3px;
    overflow: hidden;
    background: var(--tnc-white);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.wcwl-input-wrap:focus-within {
    border-color: var(--tnc-gold);
    box-shadow: 0 0 0 3px rgba(176,141,87,0.15);
}
.wcwl-flag {
    padding: 0 14px;
    font-size: 18px;
    background: var(--tnc-cream);
    border-right: 1.5px solid var(--tnc-border);
    height: 50px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
#wcwl-whatsapp {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    font-family: 'Lato', sans-serif;
    font-size: 0.97rem;
    height: 50px;
    color: var(--tnc-charcoal);
    background: transparent;
}
#wcwl-whatsapp::placeholder { color: #c4b5a0; }

/* Error */
.wcwl-input-wrap.wcwl-error {
    border-color: var(--tnc-error);
    animation: wcwlShake 0.35s ease;
}
.wcwl-error-msg {
    color: var(--tnc-error);
    font-size: 0.8rem;
    margin: 6px 0 0;
    display: none;
    text-align: left;
}
.wcwl-error-msg.visible { display: block; }

/* Submit */
#wcwl-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--tnc-gold) 0%, var(--tnc-gold-dark) 100%);
    color: var(--tnc-white);
    border: none;
    border-radius: 3px;
    padding: 15px;
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 16px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(176,141,87,0.3);
}
#wcwl-submit:hover {
    opacity: 0.9;
    box-shadow: 0 6px 24px rgba(176,141,87,0.4);
}
#wcwl-submit:active { transform: scale(0.98); }
#wcwl-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Close */
#wcwl-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--tnc-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
    line-height: 1;
}
#wcwl-close:hover {
    background: var(--tnc-cream);
    color: var(--tnc-charcoal);
}

/* Success */
#wcwl-success { text-align: center; }
.wcwl-success-icon { font-size: 52px; margin-bottom: 14px; }
#wcwl-success h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--tnc-charcoal);
    margin: 0 0 10px;
}
#wcwl-success p {
    color: var(--tnc-muted);
    font-size: 0.93rem;
    line-height: 1.7;
}
#wcwl-success strong { color: var(--tnc-gold-dark); }

/* Privacy */
.wcwl-privacy {
    margin: 18px 0 0;
    font-size: 0.75rem;
    color: #bfae9e;
}

/* Animations */
@keyframes wcwlFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes wcwlSlideUp {
    from { opacity: 0; transform: translate(-50%, -46%) scale(0.93); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes wcwlShake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}

@media (max-width: 480px) {
    .wcwl-inner { padding: 28px 22px 24px; }
    #wcwl-popup-title { font-size: 1.3rem; }
}
