.hst-form {max-width:640px;margin:20px auto;padding:20px;background:#ffffff;border:1px solid #e0e6f1;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,.06);font-family:Arial,sans-serif}
.hst-form h2 {margin-top:0}
.hst-form .hst-field {margin-bottom:16px;display:flex;flex-direction:column}
.hst-form label {font-weight:600;color:#0d4aa0;margin-bottom:4px}
.hst-form label span {color:#dc3545}
.hst-form input[type=text],
.hst-form input[type=email],
.hst-form input[type=url],
.hst-form select,
.hst-form textarea {padding:10px;border:1px solid #b9c7d9;border-radius:4px;font-size:14px}
.hst-form button {background:#0d6efd;color:#fff;padding:12px 24px;border:none;border-radius:4px;font-size:15px;font-weight:600;cursor:pointer}
.hst-form button:hover {background:#0b5ed7}
.hst-form input:focus, .hst-form select:focus, .hst-form textarea:focus {outline:2px solid #0d6efd33;border-color:#0d6efd}

/* Modal Popup - Initially Hidden */
.hst-modal-overlay {
    display: none !important;
    visibility: hidden !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
}

.hst-modal {
    display: none !important;
    visibility: hidden !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 400px;
    width: 90%;
    opacity: 0;
}

/* Show modal when visible */
.hst-modal.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1;
}

.hst-modal-overlay.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1;
}

.hst-modal-content {
    padding: 40px 30px;
    text-align: center;
}

.hst-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: #d4edda;
}

.hst-modal-icon.error {
    background: #f8d7da;
}

.hst-modal-icon::before {
    content: '✓';
    color: #28a745;
}

.hst-modal-icon.error::before {
    content: '✕';
    color: #dc3545;
}

.hst-modal-title {
    margin: 0 0 12px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.hst-modal-message {
    margin: 0 0 24px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.hst-modal-button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.hst-modal-button:hover {
    background: #0b5ed7;
}

.hst-modal-button.error {
    background: #dc3545;
}

.hst-modal-button.error:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 600px) {
    .hst-modal {
        width: 95%;
    }
    
    .hst-modal-content {
        padding: 30px 20px;
    }
}