/* Signup Form Enhancements */

/* Password strength meter styles */
.password-strength-container {
    margin-top: 0.5rem;
}

.password-requirements {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.password-requirements small {
    display: block;
    margin-bottom: 0.25rem;
}

.password-requirements small:last-child {
    margin-bottom: 0;
}

/* Password match feedback */
#password-match-feedback {
    font-weight: 500;
}

/* Edit buttons styling */
.edit-buttons-section {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.edit-buttons-section .btn {
    transition: all 0.3s ease;
}

.edit-buttons-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Confirmation section styling */
.confirmation-data {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.confirmation-data .fw-bold {
    color: #495057;
    font-size: 0.9rem;
}

.confirmation-data .form-control-plaintext {
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Form validation enhancements */
.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

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

.field-feedback {
    min-height: 1rem;
    font-weight: 500;
}

.field-feedback.feedback-valid {
    color: #198754;
}

.field-feedback.feedback-invalid {
    color: #dc3545;
}

.field-feedback.feedback-pending {
    color: #6c757d;
}

/* Password strength progress bar animations */
.progress {
    background-color: #e9ecef;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Alert enhancements */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Profile picture preview enhancements */
.avatar-placeholder {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.avatar-placeholder:hover {
    border-color: #6f42c1;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .edit-buttons-section .btn {
        margin-bottom: 0.5rem;
    }
    
    .password-requirements {
        font-size: 0.85rem;
    }
}

/* Loading states */
.btn.loading {
    pointer-events: none;
    opacity: 0.65;
}

.btn.loading::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Disabled next button styling */
.btn.disabled,
.btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Password validation states */
.password-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.password-valid {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

/* Enhanced error alerts */
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-danger ul {
    padding-left: 1.2rem;
}

.alert-danger li {
    margin-bottom: 0.25rem;
}

/* Wizard step indicators */
.nav-wizard .nav-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Tooltip removed — caused phantom empty element on Next button hover */

/* Editing controls styling */
.editing-controls {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.editing-controls .btn {
    min-width: 120px;
    font-weight: 500;
}

.editing-controls .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.editing-controls .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.editing-controls .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.editing-controls .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Edit mode indicator */
.edit-mode-indicator {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    display: none;
}

.edit-mode-indicator.show {
    display: block;
}

.edit-mode-indicator i {
    color: #f59e0b;
}

/* Ensure tab panes show properly during edit mode */
.tab-pane {
    transition: opacity 0.3s ease;
}

.tab-pane.active {
    display: block !important;
    opacity: 1;
}

.tab-pane:not(.active) {
    display: none !important;
    opacity: 0;
}

/* Edit mode overrides */
.edit-mode .nav-wizard .nav-link {
    pointer-events: auto !important;
    opacity: 1 !important;
}

.edit-mode .nav-wizard .nav-link[data-bs-toggle="tab"] {
    cursor: pointer;
}

/* ── Uppercase display on text input fields ──────────────────────────────
   Provides immediate visual feedback as the user types — the JS in
   formRegProcessor.js simultaneously transforms the actual .value so the
   submitted data matches what the user sees.

   Fields excluded:
     - email        (RFC 5321 local-part is case-sensitive by convention)
     - password     (never transformed)
     - confirmPassword (never transformed)
     - phone        (digits only — not applicable)
     - gender       (select dropdown)
     - suffix       (select dropdown)
     - dob          (date input)
     - country      (select — country names must match the dataset exactly)
     - mobileCode   (select — dial codes must match exactly)
   ─────────────────────────────────────────────────────────────────────── */
#bootstrap-wizard-validation-wizard-lastName,
#bootstrap-wizard-validation-firstName,
#bootstrap-wizard-validation-wizard-middleName,
#bootstrap-wizard-validation-wizard-address,
#bootstrap-wizard-validation-wizard-zipCode,
#addr-city-text {
    text-transform: uppercase;
}

/* City free-text fallback — also needs the rule; applied via attribute
   selector so it catches the element even when address-form.js
   re-creates it after state selection. */
input[id="addr-city-text"] {
    text-transform: uppercase;
}

