/* ═══════════════════════════════
   WN Consult Modal
   ═══════════════════════════════ */

/* Overlay */
.wn-cm-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99998;
    backdrop-filter: blur(2px);
    animation: wnFadeIn .2s ease;
}
.wn-cm-overlay.open { display: block; }

/* Box */
.wn-cm-box {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -48%);
    width: 100%; max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    z-index: 99999;
    padding: 0;
    font-family: -apple-system, 'Inter', sans-serif;
}
.wn-cm-box.open {
    display: block;
    animation: wnSlideUp .25s cubic-bezier(.34,1.56,.64,1);
}

@keyframes wnFadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes wnSlideUp { from { transform:translate(-50%,-44%); opacity:0 } to { transform:translate(-50%,-50%); opacity:1 } }

/* Close */
.wn-cm-close {
    position: absolute; top: 14px; right: 16px;
    background: #F3F4F6; border: none;
    width: 30px; height: 30px; border-radius: 50%;
    font-size: 18px; line-height: 1; cursor: pointer;
    color: #6B7280; transition: background .15s, color .15s;
    display: flex; align-items: center; justify-content: center;
}
.wn-cm-close:hover { background: #E5E7EB; color: #1D1D1F; }

/* Head */
.wn-cm-head {
    background: #F7F8FA;
    border-radius: 20px 20px 0 0;
    padding: 28px 28px 22px;
    border-bottom: 1px solid #EAECF0;
}
.wn-cm-dot-row {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600; color: #374151;
    letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 10px;
}
.wn-cm-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34,197,94,.2);
}
.wn-cm-title {
    font-size: 20px; font-weight: 700; color: #1D1D1F;
    letter-spacing: -.02em; margin-bottom: 5px;
}
.wn-cm-sub { font-size: 14px; color: #6B7280; margin-bottom: 16px; }

.wn-cm-perks {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.wn-cm-perk {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 500; color: #374151;
    background: #fff; border: 1px solid #E5E7EB;
    border-radius: 20px; padding: 4px 10px;
}
.wn-cm-perk svg { color: #2563EB; flex-shrink: 0; }

/* Form */
.wn-cm-form { padding: 24px 28px 28px; }
.wn-cm-success { display: none; padding: 40px 28px; text-align: center; }

.wn-cm-row { margin-bottom: 14px; }
.wn-cm-row label {
    display: block; font-size: 13px; font-weight: 500;
    color: #374151; margin-bottom: 5px;
}
.wn-cm-row input,
.wn-cm-row textarea {
    width: 100%; box-sizing: border-box;
    border: 1px solid #D1D5DB; border-radius: 10px;
    padding: 10px 14px; font-size: 14px; color: #1D1D1F;
    font-family: inherit; transition: border-color .15s, box-shadow .15s;
    resize: none; background: #fff;
}
.wn-cm-row input:focus,
.wn-cm-row textarea:focus {
    outline: none; border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* Timing */
.wn-cm-timing-lbl {
    font-size: 13px; font-weight: 500; color: #374151;
    margin-bottom: 8px;
}
.wn-cm-times { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.wn-cm-time {
    flex: 1;
    background: #F3F4F6; border: 1.5px solid #E5E7EB;
    border-radius: 8px; padding: 7px 10px;
    font-size: 13px; font-weight: 500; color: #374151;
    cursor: pointer; transition: all .15s; font-family: inherit;
    white-space: nowrap;
}
.wn-cm-time:hover { border-color: #2563EB; color: #2563EB; background: #EFF6FF; }
.wn-cm-time.active { border-color: #2563EB; background: #EFF6FF; color: #2563EB; font-weight: 600; }

/* Error */
.wn-cm-error {
    font-size: 13px; color: #DC2626;
    margin-bottom: 10px; min-height: 18px;
}

/* Submit */
.wn-cm-submit {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #2563EB; color: #fff; border: none;
    border-radius: 12px; padding: 14px;
    font-size: 15px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: background .15s, transform .1s;
    letter-spacing: -.01em;
}
.wn-cm-submit:hover { background: #1D4ED8; }
.wn-cm-submit:active { transform: scale(.98); }
.wn-cm-submit.loading { opacity: .7; pointer-events: none; }

/* Note */
.wn-cm-note {
    font-size: 11px; color: #9CA3AF;
    text-align: center; margin-top: 12px; line-height: 1.5;
}
.wn-cm-note a { color: #6B7280; }

/* Success */
.wn-cm-success-ico { font-size: 48px; margin-bottom: 12px; }
.wn-cm-success-h { font-size: 20px; font-weight: 700; color: #1D1D1F; margin-bottom: 8px; }
.wn-cm-success-sub { font-size: 14px; color: #6B7280; line-height: 1.6; margin-bottom: 4px; }

/* Standalone shortcode button */
.wn-consult-btn-sc {
    display: inline-flex; align-items: center; gap: 8px;
    background: #2563EB; color: #fff; border: none;
    border-radius: 50px; padding: 14px 28px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: background .15s, transform .1s;
    letter-spacing: -.01em;
}
.wn-consult-btn-sc:hover { background: #1D4ED8; transform: translateY(-1px); }
.wn-consult-btn-sc:active { transform: scale(.98); }

/* Mobile */
@media (max-width: 520px) {
    .wn-cm-box { max-width: 100%; border-radius: 20px 20px 0 0; top: auto; bottom: 0; left: 0; transform: none; max-height: 92vh; }
    .wn-cm-box.open { animation: wnSlideSheet .25s cubic-bezier(.34,1.2,.64,1); }
    @keyframes wnSlideSheet { from { transform: translateY(40px); opacity:0 } to { transform: translateY(0); opacity:1 } }
    .wn-cm-head { border-radius: 20px 20px 0 0; }
    .wn-cm-overlay.open { display: block; }
}
