/* ── Prevent body scroll when modal open ── */
body.wcq-no-scroll { overflow: hidden; }

/* ── Modal overlay ── */
#wcq-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ── Modal box ── */
#wcq-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 36px 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: wcqSlideIn .22s ease;
}
@keyframes wcqSlideIn {
    from { opacity:0; transform:translateY(18px) scale(.97); }
    to   { opacity:1; transform:translateY(0)    scale(1);   }
}

/* ── Modal header ── */
.wcq-modal-header {
    text-align: center;
    margin-bottom: 22px;
}
.wcq-modal-header svg {
    color: #394e6c;
}
.wcq-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #1a1a1a;
}
.wcq-modal-header p {
    margin: 0;
    color: #eb3300;
    font-size: 16px;
    font-weight: 700;
}

/* ── Close button ── */
#wcq-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color .15s;
}
#wcq-modal-close:hover { color: #333; }

/* ── Form fields ── */
.wcq-field { margin-bottom: 14px; }
.wcq-row.wcq-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.wcq-field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.wcq-field label span { color: #e8410a; }
.wcq-field input[type="text"], .wcq-field input[type="email"], .wcq-field input[type="date"], .wcq-field select, .wcq-field textarea {
    width: 100%;
    border-radius: 0;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    background: #fff;
    padding: 5px 10px;
    border: 1px solid #cbcbcb;
    min-height: 40px;
    background-color: #fff;
    font-size: 15px;
}
.wcq-field input:focus,
.wcq-field select:focus,
.wcq-field textarea:focus {
    border-color: #e8410a;
    box-shadow: 0 0 0 3px rgba(232,65,10,.1);
    outline: none;
}

/* ── Submit button ── */
div#wcq-modal .wcq-submit-btn {
    padding: 13px 20px;
    background-color: #3a4d6d;
    color: #fff;
    position: relative;
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;
    z-index: 2;
    border-radius: 4px;
    overflow: hidden;
    border: none;
    transition: 0.4s;
    width: 100%;
}
div#wcq-modal .wcq-submit-btn:before, div#wcq-modal .wcq-submit-btn:after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 100%;
    top: 0;
    width: 150%;
    height: 100%;
    background-color: #161b2e;
    color: #fff;
    -webkit-transform: skew(30deg) translate3d(0, 0, 0);
    transform: skew(30deg) translate3d(0, 0, 0);
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
    opacity: 0;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}
div#wcq-modal .wcq-submit-btn:before {
    left: auto;
    right: 100%;
    -webkit-transform: skew(-30deg) translate3d(0, 0, 0);
    transform: skew(-30deg) translate3d(0, 0, 0);
}
div#wcq-modal .wcq-submit-btn:hover:before {
    -webkit-transform: skew(-30deg) translate3d(70%, 0, 0);
    transform: skew(-30deg) translate3d(70%, 0, 0);
    opacity: 1;
}
div#wcq-modal .wcq-submit-btn:hover:after {
    -webkit-transform: skew(30deg) translate3d(-70%, 0, 0);
    transform: skew(30deg) translate3d(-70%, 0, 0);
    opacity: 1;
}

/* ── Notices ── */
#wcq-notice {
    border-radius: 6px;
    padding: 11px 14px;
    margin-bottom: 16px;
    font-size: .9rem;
    font-weight: 500;
}
#wcq-notice.wcq-success { background:#d4edda; color:#155724; border:1px solid #c3e6cb; }
#wcq-notice.wcq-error   { background:#f8d7da; color:#721c24; border:1px solid #f5c6cb; }

@media(max-width:480px){ .wcq-row.wcq-two-col { grid-template-columns: 1fr; gap: 0;} #wcq-modal {padding: 20px;}}