/* Course Registration Form Custom Styles */

.contact-us-wrapper .contact-us-contact .comment-form-wrap .form-clt select {
    width: 100%;
    outline: none;
    border: none;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 20px;
    background-color: transparent;
    font-weight: 400;
    color: var(--white);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px;
}

.contact-us-wrapper .contact-us-contact .comment-form-wrap .form-clt select option {
    background-color: #333;
    color: white;
    padding: 10px;
}

.contact-us-wrapper .contact-us-contact .comment-form-wrap .form-clt select:focus {
    border-color: var(--theme);
}

/* Form sections styling */
.comment-form-wrap h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.comment-form-wrap h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--theme);
    border-radius: 2px;
}

/* Form spacing improvements */
.comment-form-wrap .row.g-4 > div {
    margin-bottom: 15px;
}

/* Button styling */
.comment-form-wrap .theme-btn {
    min-width: 200px;
    font-size: 18px;
    padding: 20px 30px;
    margin-top: 10px;
}

/* Checkbox styling */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
}

.form-check-label {
    font-size: 16px;
    line-height: 1.4;
}

/* Form validation styles */
.form-clt input.error,
.form-clt select.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-clt .error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Success message styling */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Loading state */
.theme-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.theme-btn.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification styles */
.notification {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

.notification.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.notification.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.notification i {
    margin-right: 10px;
    font-size: 18px;
}

.notification .btn-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification .btn-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form validation improvements */
.form-clt input.is-invalid,
.form-clt select.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 14px;
    color: #dc3545;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .comment-form-wrap h4 {
        font-size: 18px;
    }
    
    .comment-form-wrap .theme-btn {
        min-width: 150px;
        font-size: 16px;
        padding: 18px 25px;
    }
    
    .comment-form-wrap .row.g-4 > div {
        margin-bottom: 10px;
    }
    
    .notification {
        padding: 12px 15px;
        font-size: 14px;
    }
}
