/**
 * ZF Events - Frontend Registration Form Styles
 */

.zfe-registration-wrapper {
    margin: 2rem 0;
    padding: 2rem;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.zfe-registration-wrapper h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Spots Info */
.zfe-spots-info {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.zfe-available {
    color: #46b450;
    font-weight: 600;
}

.zfe-full {
    color: #dc3232;
    font-weight: 600;
}

/* Form Row (for side-by-side fields) */
.zfe-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.zfe-form-row .zfe-form-field {
    margin-bottom: 0;
}

.zfe-form-field--half {
    flex: 1;
}

/* Form Fields */
.zfe-form-field {
    margin-bottom: 1.25rem;
}

.zfe-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.zfe-form-field .required {
    color: #dc3232;
}

.zfe-form-field .optional {
    color: #757575;
    font-weight: normal;
    font-size: 0.85rem;
}

.zfe-form-field input[type="text"],
.zfe-form-field input[type="email"],
.zfe-form-field input[type="tel"] {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.zfe-form-field input:focus {
    outline: none;
    border-color: #AD2B39;
}

.zfe-form-field input.has-error {
    border-color: #dc3232;
    background-color: #fff8f8;
}

/* Submit Button */
.zfe-form-submit {
    margin-top: 1.5rem;
}

.zfe-submit-btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: #AD2B39;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.zfe-submit-btn:hover {
    background-color: #8a222d;
}

.zfe-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Messages */
.zfe-form-message {
    margin-top: 1rem;
    padding: 15px;
    border-radius: 0;
}

.zfe-form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.zfe-form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.zfe-form-message.standalone {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .zfe-registration-wrapper {
        padding: 1.5rem;
    }

    .zfe-form-row {
        flex-direction: column;
        gap: 0;
    }

    .zfe-form-row .zfe-form-field {
        margin-bottom: 1.25rem;
    }

    .zfe-form-field input[type="text"],
    .zfe-form-field input[type="email"],
    .zfe-form-field input[type="tel"] {
        max-width: 100%;
    }

    .zfe-submit-btn {
        width: 100%;
    }
}
