/* Registration Form Styles */
.registration-form {
    max-width: 800px;
    margin: 0 auto;
}
.registration-form .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.registration-form .card-body {
    padding: 2rem;
}
.registration-form h4 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}
.registration-form .form-group {
    margin-bottom: 1.5rem;
}
.registration-form label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}
.registration-form .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all 0.3s ease;
}
.registration-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}
.registration-form .form-control-file {
    padding: 10px 0;
}
.registration-form .custom-file-label {
    border-radius: 8px;
    padding: 10px 15px;
}
.registration-form .custom-file-label::after {
    border-radius: 0 8px 8px 0;
    padding: 10px 15px;
}
.registration-form .btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 500;
}
.registration-form .custom-control-label {
    font-size: 0.9rem;
    color: #666;
}
.registration-form .custom-control-label a {
    color: #007bff;
    text-decoration: none;
}
.registration-form .custom-control-label a:hover {
    text-decoration: underline;
}

/* Form Section Styles */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}
.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.form-section-title {
    color: #007bff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* File Upload Styles */
.file-upload-info {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}
.file-upload-info i {
    color: #007bff;
    margin-right: 0.3rem;
}
.file-upload-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    display: none;
}
.file-upload-preview img {
    max-width: 200px;
    max-height: 200px;
    margin-bottom: 1rem;
}

/* Form Validation Styles */
.was-validated .form-control:valid {
    border-color: #28a745;
    background-image: none;
}
.was-validated .form-control:invalid {
    border-color: #dc3545;
    background-image: none;
}
.invalid-feedback {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .registration-form .card-body {
        padding: 1.5rem;
    }
    .registration-form h4 {
        font-size: 1.1rem;
    }
    .form-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Registration Page Styles */

/* Page Header */
.page-header {
    background-color: var(--light);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    color: var(--dark);
    font-weight: 700;
}

.page-header .lead {
    color: var(--gray);
}

/* Form Sections */
.form-section {
    padding: 1.5rem;
    background-color: var(--light);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

/* Form Controls */
.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.form-control::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Required Field Indicator */
.text-danger {
    color: var(--danger) !important;
}

/* Select Dropdown */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Submit Button */
.btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary i {
    margin-right: 0.5rem;
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(var(--success-rgb), 0.1);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
}

.alert-info {
    background-color: rgba(var(--info-rgb), 0.1);
    color: var(--info);
}

.alert i {
    margin-right: 0.5rem;
}

/* Form Validation */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--danger);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--success);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--danger);
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
    display: block;
}

/* Loading State */
.registration-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.registration-form.loading .btn-primary {
    position: relative;
    color: transparent;
}

.registration-form.loading .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.25rem;
    height: 1.25rem;
    margin: -0.625rem 0 0 -0.625rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .form-section {
        padding: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 3rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .form-section {
        padding: 1rem;
    }

    .form-section h3 {
        font-size: 1.25rem;
    }

    .btn-primary {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .form-section {
        padding: 0.75rem;
    }

    .form-control,
    .form-select {
        padding: 0.625rem 0.875rem;
    }
} 