/**
 * Sign-up Form CSS Styles
 */

.mac-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.mac-signup-form {
    background: #fff;
}

.mac-form-field {
    margin-bottom: 15px;
}

.mac-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.mac-form-field label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.mac-form-field input[type="text"],
.mac-form-field input[type="tel"],
.mac-form-field input[type="email"],
.mac-form-field textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

/* Chỉ show validation border SAU KHI user đã tương tác (class "touched" thêm bởi JS) */
.mac-form-field input.touched:not(:focus):invalid {
    border-color: #dc3545;
}

.mac-form-field input.touched:not(:focus):valid {
    border-color: #28a745;
}

.field-error {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

.required {
    color: red;
}

.mac-form-submit-btn {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s;
}

.mac-form-submit-btn:hover {
    background: #005a87;
}

.mac-form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mac-form-submit-btn.mac-form-submitting {
    position: relative;
    opacity: 0.7;
    cursor: wait;
}

/* Booking Button - Same style as submit button */
.mac-form-booking-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.mac-form-booking-btn:hover {
    text-decoration: none;
}

.mac-form-booking-button {
    text-align: center;
}

.mac-form-loading {
    display: inline-block;
    animation: mac-form-spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes mac-form-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mac-form-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 3px;
    display: none;
}

.mac-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.mac-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/**
 * Honeypot Field - Completely hidden from frontend
 * Bots will scan HTML and see this field, but users cannot see it
 */
.mac-tp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.mac-tp-field input {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.mac-form-field > a:first-child {
    display: inline-block;
    text-align: center;
}
.mac-form-field:has( > a:first-child ) {
    margin-bottom: 0;
}