/* ===== Overlay ===== */
#qoc-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    text-align: center;
}

/* ===== Box ===== */
.qoc-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    padding: 24px;
    border-radius: 10px;
    position: relative;
    font-family: inherit;
    animation: qoc-fade 0.15s ease-out;
    border: 1px solid #e5e5e5;
    margin: 0 auto;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
}

/* ===== Close btn ===== */
#qoc-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: color 0.2s;
}
#qoc-close:hover { color: #000; }
@media (max-width: 480px) {
    #qoc-close { font-size: 30px; padding: 8px; }
}

/* ===== Inputs & labels ===== */
.qoc-modal-content label { display:block; margin-bottom:4px; font-size:14px; color:#444; }
.qoc-modal-content input {
    width:100%;
    padding:10px 12px;
    border-radius:6px;
    border:1px solid #ccc;
    margin-bottom:6px !important;
    font-size:15px;
    background:#d9e2ec;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.qoc-modal-content input:focus {
    border-color:#207daf;
    outline:none;
    background:#fff;
    box-shadow:0 0 0 2px rgba(32,125,175,0.15);
}

/* ===== Submit ===== */
.qoc-modal-content button[type="submit"] {
    width:100%;
    padding:11px;
    font-size:16px;
    border-radius:6px;
    background:#207daf;
    color:#fff;
    border:none;
    cursor:pointer;
    transition:opacity 0.2s;
}
.qoc-modal-content button[type="submit"]:hover { opacity:0.9; }

/* ===== Info box ===== */
.qoc-info {
    background:#fff3cd;
    border:1px solid #ffecb5;
    color:#664d03;
    padding:12px 14px;
    border-radius:8px;
    margin-bottom:18px;
    font-size:15px;
    font-weight:600;
    text-align:center;
}

/* ===== Animation ===== */
@keyframes qoc-fade {
    from { opacity:0; transform:scale(0.98); }
    to { opacity:1; transform:scale(1); }
}
