/* --- Container chính --- */
#vmp-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: center;
}

#vmp-container h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* --- Form --- */
#vmp-voucher-form .vmp-form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

#vmp-voucher-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #34495e;
}

#vmp-voucher-form input[type="text"],
#vmp-voucher-form input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

#vmp-voucher-form input[type="text"]:focus,
#vmp-voucher-form input[type="tel"]:focus {
    border-color: #3498db;
    outline: none;
}

#vmp-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#vmp-submit-btn:hover {
    background-color: #c0392b;
}

/* --- Kết quả và thông báo --- */
#vmp-result {
    padding: 2rem;
    border: 2px dashed #2ecc71;
    border-radius: 8px;
    background-color: #e8f8f0;
}

#vmp-result h4 {
    margin-top: 0;
    color: #27ae60;
    font-size: 1.3rem;
}

#vmp-result p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

#vmp-result .vmp-voucher-code {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background-color: #2ecc71;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 5px;
    user-select: all; /* Dễ dàng bôi đen để copy */
}

#vmp-result .vmp-error-message {
    color: #e74c3c;
    font-weight: bold;
}

/* --- Loader --- */
#vmp-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.vmp-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #e74c3c;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: vmp-spin 1s linear infinite;
}

@keyframes vmp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
