/**
 * Frontend Styles - ENA PRF System
 */

/* Registration Form Styles */
.ena-registration-form {
    max-width: 100%;
    margin: 0;
}

.ena-registration-form .gform_wrapper {
    margin: 0;
}

.ena-registration-form .gform_wrapper .gform_body {
    margin-bottom: 20px;
}

.ena-registration-form .gform_wrapper .gform_footer {
    margin-top: 20px;
    text-align: center;
}

/* Form Field Styles */
.ena-registration-form .gfield {
    margin-bottom: 20px;
}

.ena-registration-form .gfield_label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.ena-registration-form .gfield_required {
    color: #dc3545;
}

.ena-registration-form input[type="text"],
.ena-registration-form input[type="email"],
.ena-registration-form input[type="tel"],
.ena-registration-form input[type="date"],
.ena-registration-form textarea,
.ena-registration-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.ena-registration-form input[type="text"]:focus,
.ena-registration-form input[type="email"]:focus,
.ena-registration-form input[type="tel"]:focus,
.ena-registration-form input[type="date"]:focus,
.ena-registration-form textarea:focus,
.ena-registration-form select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Button Styles */
.ena-registration-form .gform_footer input[type="submit"],
.ena-registration-form .gform_footer .gform_button {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ena-registration-form .gform_footer input[type="submit"]:hover,
.ena-registration-form .gform_footer .gform_button:hover {
    background: #005a87;
}

/* Error Styles */
.ena-registration-form .gfield_error {
    border-color: #dc3545 !important;
}

.ena-registration-form .gfield_error .gfield_label {
    color: #dc3545;
}

.ena-registration-form .validation_message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* Success Styles */
.ena-registration-form .gform_confirmation_message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
}

/* Loading States */
.ena-registration-form .gform_ajax_spinner {
    display: inline-block;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ena-registration-form input[type="text"],
    .ena-registration-form input[type="email"],
    .ena-registration-form input[type="tel"],
    .ena-registration-form input[type="date"],
    .ena-registration-form textarea,
    .ena-registration-form select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .ena-registration-form .gform_footer input[type="submit"],
    .ena-registration-form .gform_footer .gform_button {
        width: 100%;
        padding: 15px;
    }
}

/* Accessibility */
.ena-registration-form .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Print Styles */
@media print {
    .ena-registration-form .gform_footer {
        display: none;
    }
} 