/* ============================================
   BOTÃO PRINCIPAL
   ============================================ */
.wm-voucher-button {
    background: #007cba;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}
.wm-voucher-button:hover {
    background: #005a87;
}

/* ============================================
   VOUCHER ATIVO (exibição após gerado)
   ============================================ */
.wm-voucher-display {
    background: #f0f8ff;
    border: 1px solid #b0d4f0;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
}
.wm-voucher-display strong {
    font-size: 1.2em;
    color: #007cba;
}

/* ============================================
   MODAL (estilo Bootstrap-like)
   ============================================ */
.wm-modal {
    display: none;               /* controlado via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.wm-modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100% - 2rem); /* margem vertical de 1rem */
    margin: 1rem;
}

.wm-modal-content {
    background: #fff;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.wm-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    transition: color 0.2s;
}
.wm-modal-close:hover {
    color: #000;
}

/* ============================================
   FORMULÁRIO
   ============================================ */
.wm-form-group {
    margin-bottom: 15px;
}
.wm-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}
.wm-form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}
.wm-form-group input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* ============================================
   BOTÃO DE ENVIO
   ============================================ */
.wm-submit-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}
.wm-submit-btn:hover {
    background: #005a87;
}
.wm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   MENSAGENS (sucesso / erro)
   ============================================ */
.wm-voucher-success {
    color: #155724;
    background: #d4edda;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #c3e6cb;
}

.wm-voucher-error {
    color: #721c24;
    background: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #f5c6cb;
}

/* mensagens dentro do modal (mantendo consistência) */
#wm-voucher-modal .wm-voucher-error {
    color: #d63638;   /* cor mais vibrante para destaque */
}
#wm-voucher-modal .wm-voucher-success {
    color: #00a32a;
}