/* BLOC Ministries Test Kitchen Registration Form - Custom Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* Color Variables */
:root {
    --deep-navy: #223577;
    --slate-gray: #718096;
    --action-red: #E53E3E;
    --light-bg: #F7FAFC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --success-green: #38A169;
    --warning-yellow: #D69E2E;
    --brand-gold: #a27600;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--light-bg);
    color: var(--slate-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--deep-navy);
    font-weight: 700;
}

/* Header Styles */
/* =========================================
   1. WHITE STICKY NAVBAR 
   ========================================= */
.top-navbar {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.ministry-name {
    color: var(--deep-navy);
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

.header-logo {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

/* =========================================
   2. NAVY STICKY FORM HEADER & PROGRESS 
   ========================================= */
.form-header-section {
    background-color: var(--deep-navy);
    padding: 1.5rem 0;
    color: var(--white);
    position: sticky;
    top: 87px; /* Sits exactly below the white navbar */
    z-index: 1020;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 2.5rem;
}

.form-header-section .form-title {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.form-header-section .form-subtitle {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Redesigned Progress Bar for the Navy Background */
.progress-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3px;
    flex: 1;
    min-width: 150px;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress {
    height: 24px;
    border-radius: 20px;
    background-color: transparent;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--brand-gold); 
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--white);
    transition: width 0.4s ease;
}

/* Fix for the Print Button when placed inside the Navy Header */
.form-header-section .btn-print-form {
    color: var(--white);
    border-color: var(--white);
    white-space: nowrap; /* Forces "Print Form" onto one line */
    margin-left: 1.5rem; /* Adds breathing room between the progress bar and button */
}

.form-header-section .btn-print-form:hover {
    background-color: var(--white);
    color: var(--deep-navy);
}

@media (max-width: 768px) {
    .form-header-section {
        top: 75px; /* Adjust for mobile logo sizing */
    }
    .progress-wrapper {
        max-width: 100%;
        margin-top: 1rem;
    }
}

/* Form Container */
.form-container {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

/* Section Headers */
.section-header {
    background-color: var(--deep-navy);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 2rem 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-header:first-child {
    margin-top: 0;
}

/* Form Labels */
.form-label {
    font-weight: 600;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label.required::after,
.form-check-label.required::after {
    content: ' *';
    color: var(--action-red);
}

/* Form Controls */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--deep-navy);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.15);
}

.form-control.is-invalid {
    border-color: var(--action-red);
}

/* Show inline feedback whenever is-invalid is manually set */
.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-control.is-valid {
    border-color: var(--success-green);
}

/* Read-only Fields */
.form-control:read-only {
    background-color: var(--light-bg);
    cursor: not-allowed;
}

/* Completely disable the valid green styles on these inputs */
.form-control.is-valid, 
.was-validated .form-control:valid {
    border-color: var(--border-color) !important;
    background-image: none !important;
    box-shadow: none !important;
    padding-right: .75rem !important;
}

/* Buttons */

/* =========================================
   3. BRAND GOLD SUBMIT BUTTON 
   ========================================= */
.btn-submit-custom {
    background-color: var(--brand-gold);
    color: var(--white);
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(162, 118, 0, 0.2);
}

.btn-submit-custom:hover {
    background-color: #856100;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(162, 118, 0, 0.3);
}

.btn-primary {
    background-color: var(--deep-navy);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #162454;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background-color: var(--action-red);
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #C53030;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-green);
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #2F855A;
    transform: translateY(-1px);
}

/* Cards */
.card {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header {
    background-color: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--deep-navy);
}

/* Work Experience Table */
.work-experience-table {
    width: 100%;
    margin-bottom: 1rem;
}

.work-experience-row {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Signature Pad */
.signature-pad-container {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background-color: var(--white);
    margin-bottom: 1rem;
}

.signature-canvas {
    border: 2px dashed var(--slate-gray);
    border-radius: 6px;
    cursor: crosshair;
    width: 100%;
    height: 150px;
    background-color: var(--white);
}

.signature-canvas.signed {
    border-color: var(--success-green);
    border-style: solid;
}

/* Boilerplate Text - Improved for better readability */
.boilerplate-text {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2D3748;
}

.boilerplate-text h4 {
    color: var(--deep-navy);
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.boilerplate-text h4:first-child {
    margin-top: 0;
}

.boilerplate-text p {
    margin-bottom: 0.75rem;
}

.boilerplate-text ul {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.boilerplate-text li {
    margin-bottom: 0.4rem;
}

.boilerplate-text strong {
    color: var(--deep-navy);
    font-weight: 600;
}

/* Consent Block Styling */
.consent-block {
    background-color: var(--light-bg);
    border-left: 4px solid var(--deep-navy);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

.consent-block-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--deep-navy);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.consent-block-title::before {
    content: "📋";
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.consent-summary {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.consent-summary strong {
    color: var(--deep-navy);
}

/* Checkbox and Radio Styles */
.form-check-input:checked {
    background-color: var(--deep-navy);
    border-color: var(--deep-navy);
}

.form-check-label {
    color: var(--slate-gray);
    font-weight: 400;
}

/* Alert Messages */
.alert-success {
    background-color: #C6F6D5;
    border-color: var(--success-green);
    color: #22543D;
}

.alert-danger {
    background-color: #FED7D7;
    border-color: var(--action-red);
    color: #742A2A;
}

/* Success Summary */
.success-summary {
    background: linear-gradient(135deg, #C6F6D5 0%, #9AE6B4 100%);
    border: 2px solid var(--success-green);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.success-summary h3 {
    color: #22543D;
    margin-bottom: 1rem;
}

.summary-item {
    background-color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-weight: 600;
    color: var(--deep-navy);
}

.summary-value {
    color: var(--slate-gray);
}

/* Loading Spinner */
.spinner-border {
    color: var(--deep-navy);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .section-header {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* =========================================================
   PRINT FORM BUTTON (always visible on screen)
   ========================================================= */
.btn-print-form {
    background-color: transparent;
    color: var(--deep-navy);
    border: 2px solid var(--deep-navy);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-print-form:hover {
    background-color: var(--deep-navy);
    color: var(--white);
}

/* White-outlined variant for the dark navy header */
.btn-print-form-header {
    color: var(--white);
    border-color: var(--white);
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-print-form-header:hover {
    background-color: var(--white);
    color: var(--deep-navy);
}

/* =========================================================
   SITE FOOTER (on-screen)
   ========================================================= */
.site-footer {
    background-color: var(--deep-navy);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding: 1.1rem 0;
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* =========================================================
   PRINT-ONLY FOOTER — fixed at bottom of every printed page
   ========================================================= */
.print-footer {
    display: none; /* hidden on screen */
}

/* =========================================================
   PRINT STYLES — full form, all sections expanded
   ========================================================= */
@media print {
    /* --- Hide screen-only chrome --- */
    .no-print,
    .top-navbar,
    .form-header-section,
    .site-footer,
    #success-message,
    #error-message { display: none !important; }

    /* --- Reset sticky / shadow for clean paper output --- */
    * { position: static !important; box-shadow: none !important; }

    body {
        background-color: #fff !important;
        color: #000 !important;
        font-size: 10pt;
    }

    .form-container {
        box-shadow: none !important;
        padding: 0.5rem !important;
        border-radius: 0 !important;
    }

    /* --- Expand all accordion panels --- */
    .accordion-collapse {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
        visibility: visible !important;
    }

    /* Style accordion buttons as plain section headers */
    .accordion-button {
        color: var(--deep-navy) !important;
        background-color: #e8edf5 !important;
        font-size: 11pt !important;
        pointer-events: none;
        border-radius: 0 !important;
    }
    /* Hide the expand/collapse chevron */
    .accordion-button::after { display: none !important; }

    .accordion-item {
        border: 1px solid #ccc !important;
        border-radius: 4px !important;
        margin-bottom: 0.6rem !important;
        page-break-inside: avoid;
    }

    /* --- Show all conditionally hidden sections --- */
    #roi_decline_attendance_fields,
    #roi_decline_discipline_fields,
    #photo_decline_fields,
    #medication_other_container {
        display: block !important;
    }

    /* --- Form controls: clean borders, no focus glow --- */
    .form-control, .form-select {
        border: 1px solid #999 !important;
        border-radius: 3px !important;
        padding: 0.3rem 0.4rem !important;
        font-size: 9.5pt !important;
    }

    /* --- Cards and highlighted blocks --- */
    .card { border: 1px solid #bbb !important; margin-bottom: 0.5rem !important; }
    .bg-light-custom { background-color: #f5f5f5 !important; }
    .boilerplate-text { font-size: 8.5pt !important; line-height: 1.4 !important; }

    /* --- Inner section headers --- */
    .inner-section-header {
        font-size: 10.5pt !important;
        border-bottom: 1.5px solid #333 !important;
        margin: 0.8rem 0 0.5rem !important;
    }

    /* --- Page break hints --- */
    .accordion-item:nth-child(2) { page-break-before: always; }

    /* --- Fixed footer on every printed page --- */
    .print-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 8pt;
        color: #444;
        border-top: 1px solid #bbb;
        padding: 5px 0;
        background: white;
    }

    /* Reserve space at page bottom so content never overlaps footer */
    body::after {
        content: '';
        display: block;
        height: 30px;
    }
}

/* Utility Classes */
.text-navy {
    color: var(--deep-navy);
}

.text-red {
    color: var(--action-red);
}

.bg-light-custom {
    background-color: var(--light-bg);
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* =========================================================
   ACCORDION & INTERNAL FORM POLISH 
   ========================================================= */

/* Make Accordions match the BLOC Ministries theme */
.accordion-item {
    border: 2px solid var(--border-color);
    border-radius: 8px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--deep-navy);
    background-color: var(--light-bg);
}

.accordion-button:not(.collapsed) {
    color: var(--white);
    background-color: var(--deep-navy);
    box-shadow: none;
}

/* Make the accordion arrow white when opened */
.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(26, 54, 93, 0.25);
    border-color: var(--deep-navy);
}

/* Clean, lightweight headers for inside the accordion boxes */
.inner-section-header {
    color: var(--deep-navy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin: 2rem 0 1rem 0;
}

.inner-section-header:first-child {
    margin-top: 0;
}

/* Radio/Checkbox alignment polish */
.form-check-inline {
    margin-right: 1.5rem;
    margin-top: 0.5rem;
}
/**
 * ============================================
 * GOOGLE MAPS AUTOCOMPLETE STYLING
 * ============================================
 */

/* Autocomplete dropdown container */
.pac-container {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  margin-top: 0.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  z-index: 1050 !important; /* Above Bootstrap modals */
}

/* Autocomplete items */
.pac-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.pac-item:hover,
.pac-item-selected {
  background-color: #f8f9fa;
}

.pac-item:last-child {
  border-bottom: none;
}

/* Item text */
.pac-item-query {
  font-size: 0.95rem;
  color: #212529;
  font-weight: 500;
}

.pac-matched {
  font-weight: 700;
  color: var(--deep-navy); /* Match BLOC Ministries brand color */
}

/* Secondary text */
.pac-item span:not(.pac-item-query) {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Google logo in dropdown */
.pac-logo:after {
  margin: 0.5rem 1rem;
  display: block;
}

/* Manual toggle styling */
.form-check-input:checked {
  background-color: var(--deep-navy);
  border-color: var(--deep-navy);
}

/* Address validation alert */
#addressValidationAlert {
  animation: slideIn 0.3s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .pac-container {
    width: 100% !important;
    left: 0 !important;
  }
  
  .pac-item {
    padding: 0.5rem 0.75rem;
  }
}

/* Accessibility improvements */
.pac-item:focus {
  outline: 2px solid var(--deep-navy);
  outline-offset: -2px;
}

/* Loading state */
.form-control.loading {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8' fill='none' stroke='%23223577' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

/* Toast notifications styling */
.toast-container {
  z-index: 1060;
}

.toast {
  min-width: 300px;
}

.toast-body {
  display: flex;
  align-items: center;
}

.toast-body i {
  font-size: 1.2rem;
}

/* =========================================
   AUTH HELPER LINKS (Login page footer)
   Subtle text links below the submit button
   on the login and forgot-password pages.
   ========================================= */
.auth-helper-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.auth-helper-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--slate-gray);
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-helper-link:hover {
    color: var(--deep-navy);
    text-decoration: underline;
}

/* =========================================
   USER PROFILE WIDGET
   Floating avatar + dropdown panel in navbar
   ========================================= */

/* ── Wrapper — establishes the anchor for the dropdown ── */
.upw-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ── Circular avatar button ── */
.upw-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--deep-navy);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
    flex-shrink: 0;
}

.upw-avatar:hover {
    background-color: #1a2a5e;
    border-color: rgba(255, 255, 255, 0.65);
    transform: scale(1.06);
}

.upw-avatar:focus-visible {
    outline: 2px solid var(--deep-navy);
    outline-offset: 2px;
}

/* ── Floating dropdown panel ── */
.upw-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    z-index: 1200;
    overflow: hidden;
    animation: upwFadeIn 0.15s ease;
}

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

/* ── User info header ── */
.upw-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--light-bg);
}

.upw-avatar-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--deep-navy);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.upw-info {
    flex: 1;
    min-width: 0;
}

.upw-username {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--deep-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upw-email {
    font-size: 0.75rem;
    color: var(--slate-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.upw-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.upw-role-badge {
    display: inline-block;
    padding: 1px 7px;
    background: var(--deep-navy);
    color: #fff;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.upw-no-role {
    font-size: 0.75rem;
    color: var(--slate-gray);
    font-style: italic;
}

/* ── Divider ── */
.upw-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

/* ── Menu items ── */
.upw-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 11px 16px;
    background: none;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--deep-navy);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.12s;
}

.upw-menu-item:hover {
    background-color: var(--light-bg);
}

.upw-signout {
    color: var(--action-red);
}

.upw-signout:hover {
    background-color: #fff1f1;
}

/* ── Inline change-password sub-panel ── */
.upw-cp-panel {
    padding: 12px 16px 14px;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.upw-field {
    margin-bottom: 10px;
}

.upw-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 4px;
    font-family: 'Open Sans', sans-serif;
}

.upw-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.82rem;
    font-family: 'Open Sans', sans-serif;
    background: #fff;
    color: #1f2328;
    transition: border-color 0.15s;
}

.upw-input:focus {
    outline: none;
    border-color: var(--deep-navy);
    box-shadow: 0 0 0 2px rgba(34, 53, 119, 0.15);
}

.upw-strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.upw-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.upw-strength-label {
    font-size: 0.72rem;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.upw-match-ok  { display: block; font-size: 0.72rem; color: var(--success-green); margin-top: 3px; }
.upw-match-fail { display: block; font-size: 0.72rem; color: var(--action-red); margin-top: 3px; }

.upw-cp-error {
    font-size: 0.78rem;
    color: var(--action-red);
    background: #fff1f1;
    border: 1px solid #fcc;
    border-radius: 5px;
    padding: 6px 10px;
    margin-bottom: 10px;
}

.upw-cp-success {
    font-size: 0.82rem;
    color: var(--success-green);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 5px;
    padding: 10px 12px;
    font-weight: 600;
}

.upw-cp-submit {
    width: 100%;
    padding: 7px 0;
    background-color: var(--deep-navy);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
    margin-top: 4px;
}

.upw-cp-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.upw-cp-submit:not(:disabled):hover {
    opacity: 0.88;
}

/* =========================================
   CHANGE PASSWORD PAGE — REDESIGN
   Scoped classes that only affect the
   Change Password page. Do NOT remove.
   ========================================= */

/* Navbar: outlined deep-navy button */
.btn-outline-navy {
    color: var(--deep-navy);
    border: 2px solid var(--deep-navy);
    background-color: transparent;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline-navy:hover,
.btn-outline-navy:focus {
    background-color: var(--deep-navy);
    color: var(--white);
    text-decoration: none;
}

/* Card: elevated shadow modifier */
.form-container--lg-shadow {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(34, 53, 119, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Card header: title + subtitle block inside the card */
.cp-card-header {
    margin-bottom: 0.5rem;
}

.cp-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.35rem;
}

.cp-card-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--slate-gray);
    margin-bottom: 0;
}

.cp-card-divider {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* Submit button: full-width, solid deep-navy */
.btn-cp-submit {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: var(--deep-navy);
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.btn-cp-submit:hover:not(:disabled) {
    background-color: #162454;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 53, 119, 0.30);
}

.btn-cp-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}