/* Career Counseling Form Styles */

/* Form Container */
.career-counseling-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: #3498db;
    font-size: 1rem;
}

/* Form Controls */
.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    background-color: #fff;
}

.form-control::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* CAPTCHA Container */
.captcha-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.captcha-image {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    padding: 5px;
}

.captcha-image canvas {
    display: block;
}

/* Form Actions */
.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Form Messages */
.form-message {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Validation States */
.is-invalid {
    border-color: #dc3545;
}

.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Modal Specific Styles */
.ecs-modal .form-group {
    margin-bottom: 1.25rem;
}

.ecs-modal .form-control,
.ecs-modal .form-select {
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.95rem;
}

.ecs-modal .btn-primary {
    padding: 10px 25px;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .career-counseling-form {
        padding: 15px;
    }
    
    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-image {
        align-self: center;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .form-control,
    .form-select {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .captcha-wrapper {
        gap: 8px;
    }
}

/* Animation for form submission */
@keyframes formSubmit {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.btn-primary:active {
    animation: formSubmit 0.2s ease-in-out;
}

/* Success message animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message {
    animation: fadeInUp 0.3s ease-out;
}

/* Focus improvements for accessibility */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-control,
    .form-select {
        border-width: 2px;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}
