/* Patient Registration Form Styles */

.patient-registration-area {
    background: #f8f9fa;
    min-height: 100vh;
}

.registration-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.registration-header {
    margin-bottom: 30px;
}

.registration-header h2 {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.registration-header p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 0;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-header h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: #007bff;
    font-size: 24px;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control,
.form-select {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-right: none;
    color: #6c757d;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.input-group .form-control:focus {
    border-left: 1px solid #007bff;
}

/* Photo Upload */
.photo-upload-wrapper {
    text-align: center;
}

.photo-preview-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.photo-placeholder {
    width: 200px;
    height: 200px;
    border: 3px dashed #ced4da;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
}

.photo-placeholder:hover {
    border-color: #007bff;
    background: #e7f3ff;
}

.photo-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.photo-placeholder p {
    margin: 0;
    font-size: 14px;
}

#photo-preview {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #007bff;
}

.btn-remove-photo {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-remove-photo:hover {
    background: #c82333;
    transform: scale(1.1);
}

.photo-upload-controls {
    margin-top: 15px;
}

.photo-upload-controls label {
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.photo-upload-controls label:hover {
    background: #0056b3;
    color: white;
}

/* Password Toggle */
.btn-outline-secondary {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.alert i {
    font-size: 20px;
}

/* Invalid Feedback */
.invalid-feedback {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.is-invalid {
    border-color: #dc3545;
}

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

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.icofont-spin {
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .registration-card {
        padding: 25px 20px;
    }

    .registration-header h2 {
        font-size: 24px;
    }

    .form-section {
        padding: 20px 15px;
    }

    .form-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-actions .btn.ms-2 {
        margin-left: 0 !important;
    }

    #photo-preview,
    .photo-placeholder {
        width: 150px;
        height: 150px;
    }
}

/* Text Muted */
.text-muted {
    color: #6c757d !important;
    font-size: 12px;
}

/* Required Field Indicator */
.text-danger {
    color: #dc3545 !important;
}

/* Link Styles */
a.text-primary {
    color: #007bff !important;
    text-decoration: none;
    font-weight: 600;
}

a.text-primary:hover {
    text-decoration: underline;
}
