  /**
 * Student Enrollment Form (shortcode: [student_enrollment_form])
 *
 * All rules are scoped under .nyc-enrollment-form so the form can be dropped
 * into any Elementor page / popup without colliding with surrounding styles.
 * Extracted from the former template-student-enrollment-custom.php inline block.
 */

.nyc-enrollment-form {
    max-width: 800px;
    margin: 0 auto;
}

.nyc-enrollment-form .form-group {
    margin-bottom: 24px;
}

.nyc-enrollment-form label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Roboto', sans-serif;
}

.nyc-enrollment-form label .required {
    color: #e53935;
}

.nyc-enrollment-form input[type="text"],
.nyc-enrollment-form input[type="email"],
.nyc-enrollment-form input[type="tel"],
.nyc-enrollment-form select,
.nyc-enrollment-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.nyc-enrollment-form input::placeholder,
.nyc-enrollment-form textarea::placeholder {
    color: #999;
}

.nyc-enrollment-form input:focus,
.nyc-enrollment-form select:focus,
.nyc-enrollment-form textarea:focus {
    outline: none;
    border-color: #28AFCF;
    box-shadow: 0 0 0 3px rgba(40, 175, 207, 0.1);
}

.nyc-enrollment-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.nyc-enrollment-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Phone input wrapper */
.nyc-enrollment-form .phone-input-wrapper {
    display: flex;
    gap: 10px;
}

.nyc-enrollment-form .phone-input-wrapper .country-code {
    width: 100px;
    flex-shrink: 0;
}

.nyc-enrollment-form .phone-input-wrapper input[type="tel"] {
    flex: 1;
}

/* Error states */
.nyc-enrollment-form .form-group.error input,
.nyc-enrollment-form .form-group.error select,
.nyc-enrollment-form .form-group.error textarea {
    border-color: #e53935;
}

.nyc-enrollment-form .error-message {
    display: none;
    color: #e53935;
    font-size: 13px;
    margin-top: 6px;
}

.nyc-enrollment-form .form-group.error .error-message {
    display: block;
}

/* Submit button */
.nyc-enrollment-form .form-submit {
    text-align: center;
    margin-top: 32px;
}

.nyc-enrollment-form .submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #134958;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    min-width: 180px;
}

.nyc-enrollment-form .submit-button:hover {
    background: #0d3640;
    transform: translateY(-1px);
}

.nyc-enrollment-form .submit-button:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.nyc-enrollment-form .btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.nyc-enrollment-form .spinner {
    animation: nyc-enroll-spin 1s linear infinite;
}

@keyframes nyc-enroll-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form message */
.nyc-enrollment-form .form-message {
    display: none;
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 15px;
}

.nyc-enrollment-form .form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.nyc-enrollment-form .form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Responsive */
@media (max-width: 768px) {
    .nyc-enrollment-form .phone-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .nyc-enrollment-form .phone-input-wrapper .country-code {
        width: 100%;
    }
}
