﻿/* 
    https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Organizing 
    - Variables
    - General - default styles for tags 
    - Utilities - no-border, left, right, etc.
    - Bootstrap Overrides
    - Everything Else - typically more specific things either site-wide or page specific
*/

/* || Variables */

:root {
    --font-family: "Roboto", Arial, sans-serif;
}

/* || General Styles - default styles for tags */

body {
    margin: 0;
    padding: 0;
}

html {
    font-size: .9rem;
    font-family: var(--font-family);
    position: relative;
    min-height: 100%;
    text-transform:uppercase;
}

label {
    font-weight: bold;
}

/* || Utilities */

.font-normal{
    font-weight: normal;
}

.form-check-label {
    font-weight: normal;
}

.no-wrap {
    white-space: nowrap;
}

.upper-case {
    text-transform: uppercase;
}

/* Apply uppercase to input fields and textareas */
/* Exclude TinyMCE textareas and any editors */
input[type="text"]:not(.tox-textfield),
input[type="email"]:not(.tox-textfield),
input[type="tel"]:not(.tox-textfield),
input[type="url"]:not(.tox-textfield),
input[type="search"]:not(.tox-textfield),
textarea:not(.tox-textarea):not([id*="Content"]):not([id*="content"]),
select:not(.tox-selectfield) {
    text-transform: uppercase;
}


/* || Bootstrap Overrides */

:root {
    --bs-body-font-family: "Roboto", Arial, sans-serif;
    --bs-link-color: #1763C7;
}

/* || Everything Else - typically more specific things either site-wide or page specific */

/* Top Gradient Line */
.top-gradient-line {
    height: 4px;
    background: linear-gradient(to right, #FFF59D 0%, #FFF59D 30%, #C5E1A5 100%);
    width: 100%;
    display: block;
}

/* Header Banner Styles */
.header-banner {
    background: linear-gradient(to right, #FFF59D 0%, #FFF59D 30%, #C5E1A5 100%);
    padding: 0.5rem 0;
    border-bottom: 3px solid #ddd;
    overflow: hidden;
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo-item {
    height: 60px;
    display: flex;
    align-items: center;
}

.logo-item.logo-center {
    flex: 0 0 auto;
}

.logo-max-height {
    max-height: 90px;
    height: auto;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto.ttf') format('truetype');
}
abbr.req {
    text-decoration: none;
    color: #CC0000
}
.input-validation-error {
    border-color: var(--bs-form-invalid-border-color);
    padding-right: calc(1.5em + .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(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem)
}


.req {
    font-size: 1.0rem;
    font-weight: normal;
}

.unread-message-title {
    position: relative;
    padding-left: 12px !important;
}

.unread-message-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    width: 4px;
    background-color: #0d6efd; /* Bootstrap primary blue */
    border-radius: 2px;
}
/* Registration Result Page styles */
.escp-next-steps {
  color: #1763C7; /* ECS blue */
  font-weight: bold;
  font-size: 2rem;
  margin-bottom: 2rem;
  display: inline-block;
}
.escp-row-boxes {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 2rem;
}
.escp-box {
  background: #fff;
  border: 4px solid #000;
  border-radius: 0.75rem;
  box-shadow: none;
  padding: 0 2.5rem 2rem 2.5rem;
  min-width: 340px;
  max-width: 400px;
  min-height: 180px;
  height: 280px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin: 0 1.5rem;
  position: relative;
  overflow: visible;
}
.escp-box-tall {
  min-height: 340px;
  height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
  border: 4px solid #000;
  border-radius: 0.75rem;
  box-shadow: none;
  padding-top: 2.5rem;
  position: relative;
  overflow: visible;
}
.escp-green {
  color: #2CB34A;
}
.escp-green-large {
  color: #2CB34A;
  font-size: 1.5rem;
  font-weight: bold;
}
.escp-checkmark-halfout {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: auto;
  z-index: 2;
}
.escp-download-arrow-halfout {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: auto;
  z-index: 2;
}
.escp-invite-icon-halfout {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: auto;
  z-index: 2;
}
/* Registration Result Page */
.escp-spacer-3-5 {
  height: 3.5rem;
}
.escp-box-content-center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}
.escp-box-content-end {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.escp-mt-100 {
  margin-top: 100px;
}
.escp-font-125 {
  font-size: 1.25rem;
}
.escp-blue {
  color: #1763C7;
}
.escp-qr-img {
  max-width: 120px;
  width: 100%;
  height: auto;
  margin-top: 1.5rem;
}
.escp-error-message {
  font-size: 1.15rem;
}


.table-row-disabled {
    opacity: 0.6;
    pointer-events: none;
    background-color: #f8f9fa;
}

/* || Sortable Arrows Styling */
.sort-arrows {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* align to bottom for header alignment */
    line-height: 1;
    margin-left: 2px;
    vertical-align: middle;
    font-size: 0.95em;
    position: relative;
    top: 1px;
    height: 1.1em; /* match header text height */
}
.sort-arrow {
    color: #bbb;
    cursor: pointer;
    padding: 0;
    margin: 0;
    height: 10px;
    width: 12px;
    display: block;
    line-height: 1;
    border: none;
    background: none;
    box-shadow: none;
    outline: none;
}
.sort-arrow.active {
    color: #222;
    font-weight: bold;
}
.sort-arrow.disabled {
    pointer-events: none;
    opacity: 0.5;
}
.sort-arrows .sort-arrow + .sort-arrow {
    margin-top: 1px; /* minor spacing between arrows */
}

th .sort-arrows {
    display: inline-flex;
    margin-left: 2px;
}

/* Prevent header height expansion, but allow up arrow to extend above if needed */
th, th .sort-arrows {
    vertical-align: middle;
    height: 100%;
    overflow: visible;
}

.sort-arrows .sort-arrow:last-child {
    /* Down arrow tip should align with text baseline */
    position: relative;
    top: 0;
}

.sort-arrow, .sort-arrow:visited, .sort-arrow:active, .sort-arrow:focus {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
select.form-select:focus {
    border: 1px solid #ced4da !important;
    box-shadow: none !important;
    background-color: #fff;
}

.form-label,
select.form-select option,
select.form-select option[disabled], 
select .form-select option[value]{
    text-transform: uppercase !important;
}

.card-header{
    font-weight: bold;
}


.checkbox-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.checkbox-list li {
    margin-bottom: 5px;
}

.chip {
    display: inline-block;
    white-space: nowrap;
    padding: .15rem .5rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 999px;
    background: var(--bs-secondary-bg, #f8f9fa);
    font-size: .875rem;
    line-height: 1.25rem;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .4rem;
    align-items: center;
}

.highlight-row td {
    background-color: #FFFBE0;
}

.scrollable-box {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
}

.step-pane {
    text-transform: none;
}

.service-pill,
.cyber-pill {
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.service-pill:disabled,
.cyber-pill:disabled {
    cursor: default;
    opacity: 0.85;
}

.sticky-modal-footer {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    z-index: 5;
}

.institution-row {
    border: 1px solid #e9ecef;
    transition: background-color 0.15s ease;
}

    .institution-row:hover {
        background-color: #f8f9fa;
    }

.recommended-card {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
    background-color: rgba(var(--bs-primary-rgb), 0.06);
}

.already-added-card {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.search-panel {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.institution-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.section-subtext {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Mobile App Banner Styles */
.mobile-app-banner-container {
    margin-bottom: 2rem;
    padding: 0;
    width: 100%;
}

.mobile-app-banner {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 1.25rem 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.phone-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.qr-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.qr-code-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-code-image {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 0.5rem;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.mobile-banner-title {
    color: #FFF59D;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: none;
    line-height: 1.2;
}

.mobile-banner-text {
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1.4;
    text-transform: none;
    margin-bottom: 0.5rem;
}

.mobile-banner-tagline {
    color: #FFF59D;
    font-size: 0.95rem;
    font-weight: 500;
    font-style: italic;
    text-transform: none;
    line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-app-banner {
        padding: 1rem;
    }
    
    .mobile-banner-title {
        font-size: 1.25rem;
    }
    
    .mobile-banner-text {
        font-size: 0.85rem;
    }
    
    .mobile-banner-tagline {
        font-size: 0.85rem;
    }
    
    .qr-code-image {
        max-width: 100px;
    }
}

/* ====================================================================
   ESCP Visual Design Proposal - Shared Styles
   Emergency and Strategic Communications Portal
   ==================================================================== */

/* ====================================================================
   BASE & RESET
   ==================================================================== */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f5e8 0%, #e8f4e5 100%);
    min-height: 100vh;
}

/* ====================================================================
   TOP GRADIENT LINE
   ==================================================================== */
.top-gradient-line {
    background: linear-gradient(to right, #FFEB3B 0%, #FFEB3B 20%, #FFF59D 40%, #C5E1A5 70%, #AED581 100%) !important;
    background-color: #FFEB3B !important;
    height: 15px !important;
    min-height: 15px !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    z-index: 1000 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ====================================================================
   HEADER & LOGO
   ==================================================================== */
.header-banner {
    background: #FFFFFF;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo-item {
    height: 50px;
    display: flex;
    align-items: center;
}

    .logo-item img {
        max-height: 50px;
    }

    .logo-item.logo-center {
        height: 110px;
    }

        .logo-item.logo-center img {
            max-height: 110px;
        }

/* Dashboard Header Variation */
.dashboard-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.logo-left img, .logo-right img {
    max-height: 50px;
}

.portal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #37474F;
    text-align: center;
    flex: 1;
}

/* ====================================================================
   HERO SECTION
   ==================================================================== */
.hero-section {
    background: linear-gradient(135deg, #f5f5e8 0%, #dff0dd 100%);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(174, 213, 129, .05) 35px, rgba(174, 213, 129, .05) 70px), linear-gradient(135deg, #f5f5e8 0%, #dff0dd 100%);
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, #FFEB3B 0%, #AED581 100%) 1;
}

    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
        color: #3a4a37;
    }

/* ====================================================================
   PAGE TITLE
   ==================================================================== */
.page-title-section {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

/* ====================================================================
   CARDS & SECTIONS
   ==================================================================== */
.info-card {
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

    .info-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(to right, #FFEB3B 0%, #AED581 100%);
    }

    .info-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(174, 213, 129, 0.2);
        border-color: #AED581;
    }

.section-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

    .section-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(to right, #FFEB3B 0%, #AED581 100%);
    }

.section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f8e9 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .section-title i {
        color: #7CB342;
    }

.section-body {
    padding: 1.5rem;
}

/* ====================================================================
   ICON ELEMENTS
   ==================================================================== */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(174, 213, 129, 0.3);
}

/* ====================================================================
   CHECKLISTS
   ==================================================================== */
.checklist-item {
    padding: 0.5rem 0;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.checklist-icon {
    color: #7CB342;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ====================================================================
   TIMELINE
   ==================================================================== */
.timeline {
    position: relative;
    padding: 0;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

    .timeline-item:last-child {
        margin-bottom: 0;
    }

.timeline-marker {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(174, 213, 129, 0.3);
}

.timeline-item:not(:last-child) .timeline-marker::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 20px;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(180deg, #FFEB3B 0%, #AED581 100%);
    opacity: 0.4;
}

.timeline-content {
    flex: 1;
    padding-top: 0.25rem;
}

    .timeline-content h6 {
        margin-bottom: 0.25rem;
        font-weight: 600;
    }

    .timeline-content p {
        margin-bottom: 0;
        color: #6c757d;
        font-size: 0.95rem;
    }

/* ====================================================================
   STEP INDICATORS
   ==================================================================== */
.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-badge {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

    .step-badge.completed {
        background: linear-gradient(135deg, #558B2F 0%, #33691E 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(85, 139, 47, 0.3);
    }

    .step-badge.active {
        background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
        color: #1a1a1a;
        box-shadow: 0 2px 8px rgba(174, 213, 129, 0.4);
    }

    .step-badge.upcoming {
        background: #f0f0f0;
        color: #999;
        border: 2px dashed #ccc;
    }

.step-connector {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #C5E1A5 0%, #AED581 100%);
    opacity: 0.5;
}

    .step-connector.completed {
        opacity: 1;
    }

/* ====================================================================
   FORMS
   ==================================================================== */
.form-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

    .form-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(to right, #FFEB3B 0%, #AED581 100%);
    }

.form-card-yellow-border {
    border-left: 3px solid #FFEB3B;
}

.form-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f8e9 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.form-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.form-card-body {
    padding: 2rem 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.required-indicator {
    color: #dc3545;
    font-size: 0.875rem;
}

.optional-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
}

.form-control, .form-select {
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

    .form-control:focus, .form-select:focus {
        border-color: #AED581;
        box-shadow: 0 0 0 0.2rem rgba(174, 213, 129, 0.25);
    }

    .form-control.is-valid, .form-select.is-valid {
        border-color: #7CB342;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%237CB342' 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(.375em + .1875rem) center;
        background-size: calc(.75em + .375rem) calc(.75em + .375rem);
        padding-right: calc(1.5em + .75rem);
    }

.input-group-text {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-right: none;
    color: #7CB342;
}

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

/* Valid state styling - green border between icon and input */
.input-group:has(.form-control.is-valid) .input-group-text {
    border-color: #7CB342;
    border-right: 2px solid #7CB342;
}

.input-group .form-control.is-valid {
    border-left-color: #7CB342;
    border-left-width: 1px;
}

/* Valid state for selects */
.input-group:has(.form-select.is-valid) .input-group-text {
    border-color: #7CB342;
    border-right: 2px solid #7CB342;
}

.input-group .form-select.is-valid {
    border-left-color: #7CB342;
    border-left-width: 1px;
}

/* Focus state styling */
.input-group:focus-within .input-group-text {
    border-color: #AED581;
    border-right: 2px solid #AED581;
}

.input-group:focus-within .form-control,
.input-group:focus-within .form-select {
    border-color: #AED581;
    border-left-color: #AED581;
}

/* ====================================================================
   PROFILE INFO
   ==================================================================== */
.profile-info {
    display: flex;
    gap: 3rem;
}

.profile-column {
    flex: 1;
}

.profile-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

    .profile-item i {
        color: #7CB342;
        font-size: 1.1rem;
        margin-top: 0.25rem;
    }

.profile-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.profile-value {
    color: #212529;
    font-size: 1rem;
}

    .profile-value a {
        color: #7CB342;
        text-decoration: none;
    }

        .profile-value a:hover {
            text-decoration: underline;
        }

/* ====================================================================
   TABLES
   ==================================================================== */
.data-table {
    width: 100%;
    margin-bottom: 0;
}

    .data-table thead th {
        background: #e8e9ea;
        border-bottom: 2px solid #dee2e6;
        color: #2a2a2a;
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        padding: 0.75rem 1rem;
        letter-spacing: 0.5px;
    }

    .data-table tbody td {
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
        vertical-align: middle;
    }

    .data-table tbody tr:hover {
        background: #f8fdf5;
    }

/* Expandable Contacts Row */
.contacts-row {
    background: linear-gradient(135deg, #f8fdf5 0%, #f1f8e9 100%);
    display: none;
}

    .contacts-row.show {
        display: table-row;
    }

.contacts-container {
    padding: 1rem 2rem;
}

.contact-card {
    background: white;
    border: 1px solid #C5E1A5;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: start;
    gap: 1rem;
}

    .contact-card:last-child {
        margin-bottom: 0;
    }

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.contact-role {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #495057;
}

    .contact-detail i {
        color: #7CB342;
    }

/* ====================================================================
   STATUS BADGES
   ==================================================================== */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-confirmed {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

/* System Badges */
.system-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.system-ecs {
    background: #FFFDE7;
    color: #5A5A00;
    border: 2px solid #E6DB00;
}

.system-scs {
    background: #f1f8e9;
    color: #33691e;
    border: 1px solid #aed581;
}

.badge-recommended {
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
    color: #1a1a1a;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.unread-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ====================================================================
   BUTTONS
   ==================================================================== */
.btn-save {
    background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(124, 179, 66, 0.3);
}

    .btn-save:hover {
        background: linear-gradient(135deg, #689F38 0%, #33691E 100%);
        box-shadow: 0 4px 12px rgba(124, 179, 66, 0.4);
        color: white;
    }

.btn-view {
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
    border: none;
    color: #1a1a1a;
}

    .btn-view:hover {
        box-shadow: 0 2px 8px rgba(174, 213, 129, 0.3);
    }

.btn-add-system {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.25rem;
    border: none;
    transition: all 0.2s;
}

.btn-add-ecs {
    background: #FFFDE7;
    color: #5A5A00;
    border: 2px solid #E6DB00;
}

    .btn-add-ecs:hover {
        background: #FFF9C4;
        color: #5A5A00;
        border-color: #D4C300;
    }

.btn-add-scs {
    background: #F1F8E9;
    color: #33691E;
    border: 1px solid #AED581;
}

    .btn-add-scs:hover {
        background: #DCEDC8;
    }

    .btn-add-scs:disabled,
    .btn-add-ecs:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.action-buttons {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    position: sticky;
    bottom: 1rem;
}

/* ====================================================================
   EMPTY STATES
   ==================================================================== */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

    .empty-state i {
        font-size: 2rem;
        color: #dee2e6;
        margin-bottom: 0.5rem;
    }

/* ====================================================================
   INBOX / MESSAGES
   ==================================================================== */
.message-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
}

    .message-item:hover {
        background: #f8fdf5;
    }

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

.message-unread {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc3545;
    flex-shrink: 0;
}

.message-read {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.message-system {
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

    .message-title a {
        color: #212529;
        text-decoration: none;
    }

        .message-title a:hover {
            color: #7CB342;
        }

.message-date {
    color: #6c757d;
    font-size: 0.875rem;
}

.message-actions {
    flex-shrink: 0;
}

/* ====================================================================
   MODALS
   ==================================================================== */
.modal-content {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

    .modal-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(to right, #FFEB3B 0%, #AED581 100%);
    }

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f8e9 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: #212529;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

/* Recommended Section in Modals */
.recommended-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    border: 2px solid #C5E1A5;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.recommended-header {
    font-weight: 600;
    color: #558B2F;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommended-subtext {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Institution/Subscription Items in Modals */
.institution-item,
.subscription-row {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

    .institution-item:hover,
    .subscription-row:hover {
        border-color: #AED581;
        box-shadow: 0 2px 8px rgba(174, 213, 129, 0.2);
    }

    .institution-item:last-child,
    .subscription-row:last-child {
        margin-bottom: 0;
    }

.institution-item-header {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.institution-item-details {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.institution-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Search Section in Modals */
.search-section {
    margin-bottom: 1.5rem;
}

.search-section-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

.search-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.search-input-modal {
    flex: 1;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
}

    .search-input-modal:focus {
        border-color: #AED581;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(174, 213, 129, 0.25);
    }

.institution-count {
    font-size: 0.875rem;
    color: #6c757d;
    padding: 0.5rem 0;
}

/* ====================================================================
   COMMUNICATION CARDS
   ==================================================================== */
.communication-card {
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    position: relative;
    overflow: hidden;
}

    .communication-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(to right, #FFEB3B 0%, #AED581 100%);
        transform: scaleX(0);
        transition: transform 0.3s;
    }

    .communication-card:hover {
        border-color: #AED581;
        box-shadow: 0 4px 12px rgba(174, 213, 129, 0.2);
    }

        .communication-card:hover::before {
            transform: scaleX(1);
        }

    .communication-card.selected {
        border-color: #7CB342;
        background: linear-gradient(135deg, #fffef7 0%, #f8fdf5 100%);
        box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
    }

        .communication-card.selected::before {
            transform: scaleX(1);
        }

.comm-icon {
    font-size: 2rem;
    color: #7CB342;
    margin-bottom: 1rem;
}

.comm-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.comm-subtitle {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ====================================================================
   STEP 1 - INSTITUTION SEARCH 
   ==================================================================== */
.step-nav {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

    .step-nav .step-item {
        text-align: center;
        position: relative;
    }

    .step-nav .step-badge {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .step-nav .step-item.active .step-badge {
        background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
        color: #1a1a1a;
        box-shadow: 0 2px 8px rgba(174, 213, 129, 0.4);
    }

    .step-nav .step-item.inactive .step-badge {
        background: #f0f0f0;
        color: #999;
    }

.step-label {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
}

.step-nav .step-item.inactive .step-label {
    color: #999;
}

.step-nav .step-connector {
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: -1;
}


@media (max-width: 768px) {
    .step-nav-list {
        max-width: 100%;
        padding: 0 1rem;
    }

    .step-nav .step-badge {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-nav .step-connector {
        top: 17px;
    }
}

.info-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    border: 2px solid #C5E1A5;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

    .info-banner i {
        color: #558B2F;
        font-size: 1.35rem;
    }

    .info-banner h1,
    .info-banner .h5 {
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.25rem !important;
    }

    .info-banner p {
        font-size: 0.9rem !important;
        margin-bottom: 0 !important;
    }

.form-section-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

    .form-section-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(to right, #FFEB3B 0%, #AED581 100%);
    }

.form-section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f8e9 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

    .form-section-header h3 {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 600;
        color: #212529;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .form-section-header h2,
    .form-section-header .h3 {
        font-size: 1.15rem !important;
    }

    .form-section-header .icon {
        color: #7CB342;
        font-size: 1.35rem;
    }

.form-section-body {
    padding: 1.5rem;
}

.specialty-group-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #dee2e6;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    user-select: none;
}

    .specialty-group-chip input[type="checkbox"] {
        display: none;
    }

    .specialty-group-chip span {
        font-weight: 600;
        color: #495057;
        transition: color 0.2s;
    }

    .specialty-group-chip:hover {
        border-color: #AED581;
        background: #f8fdf5;
        transform: translateY(-1px);
    }

    .specialty-group-chip.selected {
        border-color: #7CB342 !important;
        background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%) !important;
        box-shadow: 0 2px 8px rgba(124, 179, 66, 0.3);
    }

        .specialty-group-chip.selected span {
            color: #1a1a1a !important;
            font-weight: 700;
        }

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7CB342;
    font-size: 1.1rem;
    pointer-events: none;
}

.search-input {
    padding-left: 3rem !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem;
}

    .search-input:focus {
        border-color: #AED581 !important;
        box-shadow: 0 0 0 0.2rem rgba(174, 213, 129, 0.25) !important;
    }

.advanced-search {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.institution-result {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
    justify-content: space-between;
    gap: 1.5rem;
}

    .institution-result:hover {
        border-color: #AED581;
        box-shadow: 0 2px 8px rgba(174, 213, 129, 0.2);
        background: #f8fdf5;
    }

    .institution-result .flex-grow-1 {
        flex: 1;
        min-width: 0; /* allows text truncation if needed */
    }

.institution-name {
    font-weight: 600;
    color: #212529;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.institution-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

    .institution-details span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .institution-details i {
        color: #7CB342;
        margin-right: 0.25rem;
        font-size: 0.9rem;
    }

.btn-select-institution {
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
    border: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
    min-width: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.2;
}

    .btn-select-institution:hover:not(:disabled) {
        background: linear-gradient(135deg, #E6D435 0%, #9ACC74 100%);
        color: #1a1a1a;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(174, 213, 129, 0.3);
    }

    .btn-select-institution i {
        font-size: 1rem;
    }

    /* Success state for already selected institutions */
    .btn-select-institution.btn-success:disabled {
        background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%) !important;
        color: white !important;
        opacity: 0.8;
        cursor: not-allowed;
    }

.selected-institutions-card {
    background: linear-gradient(135deg, #f8fdf5 0%, #f1f8e9 100%);
    border: 2px solid #C5E1A5;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.institution-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #AED581;
    border-radius: 2rem;
    font-weight: 500;
    color: #212529;
}

    .institution-tag .remove-btn {
        background: transparent;
        border: none;
        color: #dc3545;
        cursor: pointer;
        padding: 0;
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s;
    }

        .institution-tag .remove-btn:hover {
            background: #dc3545;
            color: white;
        }








.nav-buttons {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin-top: 2rem;
    /* Sticky navigation */
    position: sticky;
    bottom: 1rem;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(174, 213, 129, 0.4);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #E6D435 0%, #9ACC74 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(174, 213, 129, 0.5);
}

.scroll-to-top:focus {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 5rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

.btn-nav {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s;
}






.btn-skip {
    color: #7CB342;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

    .btn-skip:hover {
        color: #558B2F;
        text-decoration: underline;
    }

/* Navigation Buttons - Sticky positioning */
.nav-buttons {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    margin-top: 2rem;
    position: sticky;
    bottom: 1rem;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.08);
}






/* ====================================================================
   RESULT PAGE - SUCCESS & ERROR
   ==================================================================== */
/* Success Hero */
.success-hero {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 3px solid #28a745;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.3);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: #155724;
    margin-bottom: 0.75rem;
}

.success-subtitle {
    font-size: 1.2rem;
    color: #155724;
}

/* Important Warning Card */
.important-card {
    background: white;
    border: 3px solid #ffc107;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
    margin-bottom: 3rem;
}

.important-header {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    padding: 1rem;
    text-align: center;
}

    .important-header h5 {
        margin: 0;
        color: #000;
        font-weight: 700;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
    }

.important-body {
    padding: 2rem;
    text-align: center;
}

    .important-body p {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        color: #495057;
    }

    .important-body strong {
        color: #212529;
    }

.login-gov-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s;
}

    .login-gov-btn:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

/* Next Steps Section */
.next-steps-title {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

    .next-steps-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(to right, #667eea, #764ba2);
        border-radius: 2px;
    }

/* Next Steps Cards */
.next-step-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
    position: relative;
    overflow: visible;
}

    .next-step-card:hover {
        border-color: #667eea;
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    }

    .next-step-card.tall {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        border-color: #28a745;
    }

        .next-step-card.tall:hover {
            border-color: #20c997;
            box-shadow: 0 8px 24px rgba(40, 167, 69, 0.2);
        }

.step-icon-wrapper {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .step-icon-wrapper.success {
        border-color: #28a745;
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    }

    .step-icon-wrapper img {
        max-width: 40px;
        max-height: 40px;
    }

    .step-icon-wrapper.success i {
        color: white;
        font-size: 2rem;
    }

.step-content {
    margin-top: 2rem;
    text-align: center;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
}

.step-description {
    color: #6c757d;
    line-height: 1.6;
}

.safe-senders {
    margin-top: 1rem;
}

.safe-sender-email {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #28a745;
    margin: 0.5rem 0;
}

.qr-code {
    margin-top: 1rem;
}

    .qr-code img {
        max-width: 150px;
        border: 3px solid #667eea;
        border-radius: 0.5rem;
        padding: 0.5rem;
        background: white;
    }

.download-label {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* Error State */
.error-hero {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 3px solid #dc3545;
}

.error-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: #721c24;
    margin-bottom: 0.75rem;
}

.error-card {
    background: white;
    border: 3px solid #dc3545;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2);
}

    .error-card p {
        font-size: 1.1rem;
        color: #495057;
        line-height: 1.8;
    }

    .error-card strong {
        color: #721c24;
    }

    .error-card a {
        color: #667eea;
        font-weight: 600;
    }

/* ====================================================================
   STEP 3 - COMMUNICATIONS
   ==================================================================== */
.section-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.communication-card .communication-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.communication-checkbox-wrapper {
    flex-shrink: 0;
}

.communication-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #7CB342;
}

.communication-logo {
    flex-shrink: 0;
    height: 60px;
    display: flex;
    align-items: center;
}

    .communication-logo img {
        max-height: 60px !important;
        max-width: 200px;
        width: auto !important;
        height: auto !important;
    }

.communication-body {
    margin-bottom: 1rem;
}

.communication-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.communication-description {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.learn-more-link {
    color: #7CB342;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s;
}

    .learn-more-link:hover {
        color: #558B2F;
        gap: 0.5rem;
    }

.cyberspecialist-option {
    background: #f8fdf5;
    border: 1px solid #C5E1A5;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

    .cyberspecialist-option input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 0.5rem;
        cursor: pointer;
        accent-color: #7CB342;
    }

    .cyberspecialist-option label {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        margin: 0;
        font-weight: 500;
    }

.tooltip-icon {
    color: #7CB342;
    cursor: help;
    font-size: 1rem;
}

.warning-banner {
    background: linear-gradient(135deg, #fff3e0 0%, #ffebee 100%);
    border: 2px solid #ff9800;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

    .warning-banner i {
        color: #f57c00;
        font-size: 1.5rem;
    }

/* Communication card selected states */
.communication-card.selected-ecs {
    border-color: #FFA726 !important;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFECB3 100%) !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3) !important;
}

.communication-card.selected-scs {
    border-color: #7CB342 !important;
    background: linear-gradient(135deg, #F1F8E9 0%, #DCEDC8 100%) !important;
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3) !important;
}

.btn-submit {
    background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(124, 179, 66, 0.3);
}

    .btn-submit:hover:not(:disabled) {
        background: linear-gradient(135deg, #689F38 0%, #33691E 100%);
        box-shadow: 0 4px 12px rgba(124, 179, 66, 0.4);
        color: white;
    }

    .btn-submit:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Step badges for completed steps */
.step-nav .step-item.completed .step-badge {
    background: linear-gradient(135deg, #558B2F 0%, #33691E 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(85, 139, 47, 0.3);
}

/* ====================================================================
   FOOTER
   ==================================================================== */
footer {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* ====================================================================
   UTILITY CLASSES
   ==================================================================== */
/* Button styles */
.btn-primary-gradient {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border: none;
    color: white;
    font-weight: 600;
}

    .btn-primary-gradient:hover {
        background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
        color: white;
    }

.btn-logout {
    font-weight: 600;
}

/* Container styles */
.container-main {
    max-width: 1400px;
    padding: 0 2rem 3rem;
}

.container-edit-profile {
    max-width: 1000px;
    padding: 0 2rem 6rem;
}

/* Profile styles */
.profile-item-spaced {
    margin-bottom: 1.5rem;
}

.profile-label-dark {
    color: #1a1a1a;
}

.profile-value-link {
    color: #000;
    text-decoration: none;
}

    .profile-value-link:hover {
        color: #000;
        text-decoration: underline;
    }

/* Contact card compact */
.contact-card-compact {
    padding: 0.75rem;
    display: block;
    text-align: center;
}

.contact-icon-compact {
    margin: 0 auto 0.5rem;
}

.contact-name-compact {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Contacts heading */
.contacts-heading {
    color: #7CB342;
}

/* Form label styles */
.form-label-dark {
    color: #2a2a2a;
}

/* Page title section variations */
.page-title-section-small {
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .page-title-section-small .page-title {
        margin: 0;
    }

/* Logo sizes */
.logo-max-50 {
    max-height: 50px;
}

.logo-max-60 {
    max-height: 60px;
}

.logo-max-110 {
    max-height: 110px;
    max-width: 450px;
}

.logo-max-130 {
    max-height: 130px;
    max-width: 450px;
}

/* Sticky action buttons */
.action-buttons-sticky {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    margin-top: 2rem;
}

/* Alert/Info banner styles */
.alert-gradient-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    border-left: 4px solid #7CB342;
    border-color: #C5E1A5;
}

.alert-icon-green {
    color: #558B2F;
}

/* Required indicator */
.required-text {
    color: #dc3545;
}

/* Search section styles */
.search-select {
    width: auto;
    border: 2px solid #dee2e6;
}

.btn-search-gradient {
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
    border: none;
    color: #1a1a1a;
    font-weight: 600;
}

    .btn-search-gradient:hover {
        background: linear-gradient(135deg, #E6D435 0%, #9ACC74 100%);
        color: #1a1a1a;
    }

.btn-disabled-fade {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal icon colors */
.modal-icon-green {
    color: #7CB342;
}

.modal-icon-orange {
    color: #FFA726;
}

/* Subscription list styles */
.subscription-header {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.subscription-list {
    max-height: 400px;
    overflow-y: auto;
}

.subscription-item-row {
    border-bottom: 1px solid #f0f0f0;
}

/* Checkbox sizes */
.checkbox-lg {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
}

/* Specialty group checkboxes - ensure proper display */
#addSpecialtyGroupModal .form-check-input {
    margin-top: 0.25rem;
    vertical-align: middle;
}

#addSpecialtyGroupModal .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#addSpecialtyGroupModal .form-check-label {
    margin-bottom: 0;
}

.checkbox-md {
    width: 18px !important;
    height: 18px !important;
}

/* Form check label styles */
.form-check-label-bold {
    font-weight: 600;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Cancel button gradient */
.btn-cancel-gradient {
    background: linear-gradient(135deg, #FFEB3B 0%, #FFA726 100%);
    border: none;
    color: #1a1a1a;
    font-weight: 600;
}

    .btn-cancel-gradient:hover {
        background: linear-gradient(135deg, #E6D435 0%, #FF9800 100%);
        color: #1a1a1a;
    }

/* Modal text styles */
.modal-instruction {
    font-size: 0.95rem;
}

/* Footer container */
.footer-container {
    max-width: 1400px;
}

/* Step 1 specific styles */
.form-section-header-alt {
    background: linear-gradient(135deg, #e8e9ea 0%, #e1e8e0 100%);
}

.form-section-header-clickable {
    cursor: pointer;
}

.state-select-offset {
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    margin-top: 2.2rem;
}

.btn-select-institution {
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
    border: none;
    color: #1a1a1a;
    font-weight: 600;
}

    .btn-select-institution:hover {
        background: linear-gradient(135deg, #E6D435 0%, #9ACC74 100%);
        color: #1a1a1a;
    }

.text-success-dark {
    color: #33691E !important;
}

.badge-gradient-yellow-green {
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
    color: #1a1a1a;
}

.chevron-rotate {
    transition: transform 0.3s;
}

.btn-next-gradient {
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%);
    border: none;
    color: #1a1a1a;
    font-weight: 600;
}

    .btn-next-gradient:hover:not(:disabled) {
        background: linear-gradient(135deg, #E6D435 0%, #9ACC74 100%);
        color: #1a1a1a;
    }

    .btn-next-gradient:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.fw-bold {
    font-weight: 600 !important;
}

/* Step 2 specific styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

    .form-help i {
        color: #7CB342;
    }

.secondary-address-toggle {
    text-align: center;
    padding: 2rem;
    border: 2px dashed #C5E1A5;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #fafff7 0%, #f8fdf5 100%);
}

    .secondary-address-toggle:hover {
        border-color: #7CB342;
        background: linear-gradient(135deg, #f8fdf5 0%, #f1f8e9 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(124, 179, 66, 0.15);
    }

    .secondary-address-toggle i {
        font-size: 2.5rem;
        color: #7CB342;
        margin-bottom: 1rem;
    }

    .secondary-address-toggle h5 {
        color: #212529;
        font-weight: 600;
    }

    .secondary-address-toggle p {
        color: #6c757d;
        font-size: 0.95rem;
    }

/* Step 3 / Result page styles */
.login-gov-btn-large {
    background: white;
    border: 3px solid #112e51;
    color: #112e51;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    max-width: 400px;
    margin: 1rem auto 0;
    width: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .login-gov-btn-large:hover {
        background: #f5f5f5;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        color: #112e51;
    }

.login-gov-text-prefix {
    color: #71767a;
    font-weight: 400;
    font-size: 1rem;
}

.login-gov-logo {
    height: 22px;
}

.login-gov-text-fallback {
    display: none;
    color: #112e51;
    font-weight: 700;
}

.error-subtitle {
    color: #721c24;
}

/* Landing page specific styles */
.mobile-app-banner {
    max-width: 1100px;
    height: auto;
}

.text-secondary-dark {
    color: #4a4a4a;
}

.text-very-dark {
    color: #1a1a1a;
}

.text-dark-gray {
    color: #3a3a3a;
}

.card-new-user {
    border-color: #AED581;
    box-shadow: 0 4px 12px rgba(174, 213, 129, 0.2);
}

.card-header-gradient-yellow-green {
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%) !important;
    border: none !important;
}

.card-title-dark {
    color: #1a1a1a !important;
}

.btn-start-registration {
    background: linear-gradient(135deg, #FFEB3B 0%, #AED581 100%) !important;
    border: none !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(174, 213, 129, 0.3);
    transition: all 0.3s;
}

    .btn-start-registration:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(174, 213, 129, 0.4);
        color: #1a1a1a !important;
    }

.card-existing-user {
    border-color: #1a1a1a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header-dark {
    background: #4a4a4a !important;
    border: none !important;
}

.btn-login-gov-landing {
    background: white !important;
    border: 2px solid #1a1a1a !important;
    color: #1a1a1a !important;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

    .btn-login-gov-landing:hover {
        background: #f5f5f5 !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        color: #1a1a1a !important;
    }

.login-gov-text-gray {
    color: #888;
    font-weight: 400;
    font-size: 0.95rem;
}

.login-gov-logo-landing {
    height: 20px;
}

.login-gov-text-fallback-landing {
    display: none;
    color: #112e51;
    font-weight: 700;
}

.hr-thick {
    border-top: 2px solid #dee2e6;
}

.card-how-it-works {
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.card-header-how-it-works {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f8e9 100%);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #FFEB3B 0%, #AED581 100%) 1;
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
/* ====================================================================
   RESPONSIVE - Mobile Optimizations
   ==================================================================== */

/* Tablet and Below (768px) */
@media (max-width: 768px) {
    /* Prevent text overflow and truncation */
    * {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    /* Header & Logo */
    .logo-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .logo-item.logo-center {
        height: 80px;
    }
    
    .logo-item.logo-center img {
        max-height: 80px;
    }
    
    /* Page Title Section - Stack Vertically */
    .page-title-section,
    .page-title-section-small {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 0 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
        word-break: break-word;
    }
    
    .page-title-section .d-flex,
    .page-title-section-small .d-flex {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-title-section .d-flex .btn,
    .page-title-section-small .d-flex .btn {
        width: 100%;
        white-space: normal;
        text-align: center;
        padding: 0.75rem 1rem;
    }
    
        /* Section Headers - Stack Title and Button */
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
        position: relative;
        z-index: 10;
        background: linear-gradient(135deg, #f8f9fa 0%, #f1f8e9 100%);
    }
    
    .section-header .btn,
    .section-header button {
        width: 100%;
        white-space: normal;
        min-height: 44px;
    }
    
    .section-title {
        font-size: 1rem;
        word-break: break-word;
        flex-wrap: wrap;
    }
    
        /* Section Body Padding - Reduce for mobile */
    .section-body {
        padding: 0.75rem;
    }
    
        /* Empty state - more compact */
    .empty-state {
        padding: 1.5rem 0.75rem;
    }
    
    .empty-state i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .empty-state p {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    /* Empty state in contacts - special styling */
    .contacts-container .empty-state {
        background: white;
        border-radius: 0.375rem;
        padding: 1.5rem;
        border: 1px dashed #C5E1A5;
    }
    
    /* Container Padding */
    .container-main,
    .container-edit-profile {
        padding: 0 0.5rem 2rem;
    }
    
    /* Profile Info - Stack Columns */
    .profile-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .profile-item i {
        margin-top: 0.25rem;
        font-size: 1rem;
    }
    
        /* Tables - Convert to Mobile Cards */
    .data-table {
        display: block;
        overflow-x: visible;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tbody {
        display: block;
    }
    
    .data-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        padding: 0.75rem;
        background: white;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    /* Remove extra border when contacts row is expanded */
    .data-table tbody tr.contacts-row {
        border: none;
        box-shadow: none;
        padding: 0;
        margin-bottom: 0;
        margin-top: 0.5rem;
        background: transparent;
    }
    
    .data-table tbody tr:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .data-table tbody td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        text-align: left !important;
    }
    
    .data-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        color: #495057;
        font-size: 0.75rem;
        text-transform: uppercase;
        margin-bottom: 0.25rem;
        letter-spacing: 0.5px;
    }
    
    /* Inbox Table Mobile */
    #tableCommunicationInbox tbody tr {
        position: relative;
        padding-right: 3rem;
    }
    
    #tableCommunicationInbox tbody td:nth-child(1),
    #tableCommunicationInbox tbody td:nth-child(2) {
        display: inline-block;
        width: auto;
        padding: 0.25rem;
        margin-right: 0.5rem;
    }
    
    #tableCommunicationInbox tbody td:nth-child(1)::before,
    #tableCommunicationInbox tbody td:nth-child(2)::before {
        display: none;
    }
    
    #tableCommunicationInbox tbody td:last-child {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        padding: 0;
    }
    
    #tableCommunicationInbox tbody td:last-child::before {
        display: none;
    }
    
    /* Institution Tables Mobile - More compact */
    #tableECSInstitutionsContacts tbody tr:not(.contacts-row),
    #tableSCSInstitutionsContacts tbody tr:not(.contacts-row) {
        position: relative;
        padding: 0.75rem;
        padding-left: 3.5rem;
        padding-right: 3rem;
        margin-bottom: 0.5rem;
    }
    
    /* When contacts are expanded, add more space below the institution row */
    #tableECSInstitutionsContacts tbody tr:not(.contacts-row):has(+ .contacts-row.show),
    #tableSCSInstitutionsContacts tbody tr:not(.contacts-row):has(+ .contacts-row.show) {
        margin-bottom: 0;
        border-bottom: none;
    }
    
    /* Expand button - left side */
    #tableECSInstitutionsContacts tbody td:first-child,
    #tableSCSInstitutionsContacts tbody td:first-child {
        position: absolute;
        top: 1rem;
        left: 0.5rem;
        transform: none;
        padding: 0;
        width: auto;
        z-index: 5;
    }
    
    #tableECSInstitutionsContacts tbody td:first-child::before,
    #tableSCSInstitutionsContacts tbody td:first-child::before {
        display: none;
    }
    
    #tableECSInstitutionsContacts tbody td:first-child .btn,
    #tableSCSInstitutionsContacts tbody td:first-child .btn {
        min-width: 36px;
        min-height: 36px;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Institution name - make prominent and NOT a table header */
    #tableECSInstitutionsContacts tbody td:nth-child(2),
    #tableSCSInstitutionsContacts tbody td:nth-child(2) {
        font-size: 1rem !important;
        font-weight: 600 !important;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        padding: 0;
        word-break: break-word;
    }
    
    #tableECSInstitutionsContacts tbody td:nth-child(2)::before,
    #tableSCSInstitutionsContacts tbody td:nth-child(2)::before {
        content: 'Institution';
        font-weight: 600;
        display: block;
        color: #495057;
        font-size: 0.75rem;
        text-transform: uppercase;
        margin-bottom: 0.25rem;
        letter-spacing: 0.5px;
    }
    
    /* Delete button - right side */
    #tableECSInstitutionsContacts tbody td:last-child,
    #tableSCSInstitutionsContacts tbody td:last-child {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        padding: 0;
    }
    
    #tableECSInstitutionsContacts tbody td:last-child::before,
    #tableSCSInstitutionsContacts tbody td:last-child::before {
        display: none;
    }
    
    /* RSSD and Status on separate lines but compact */
    #tableECSInstitutionsContacts tbody td:nth-child(3),
    #tableSCSInstitutionsContacts tbody td:nth-child(3),
    #tableSCSInstitutionsContacts tbody td:nth-child(4),
    #tableSCSInstitutionsContacts tbody td:nth-child(4) {
        display: block;
        width: 100%;
        padding: 0.25rem 0;
    }
    
     /* Contacts Rows Mobile - Hide by default, show only when expanded */
    .contacts-row {
        display: none !important;
        background: transparent !important;
    }
    
    .contacts-row.show {
        display: table-row !important;
    }
    
    /* Make contacts row span full width in mobile */
    .contacts-row td {
        padding: 0 !important;
        position: static !important;
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }
    
    .contacts-row td::before {
        display: none !important;
    }
    
    .contacts-container {
        padding: 1rem 0.75rem !important;
        position: static !important;
        margin-top: 0.5rem !important;
        background: linear-gradient(135deg, #f8fdf5 0%, #f1f8e9 100%);
        border-radius: 0.5rem;
        border: none !important;
        box-shadow: none !important;
    }
    
    .contacts-heading {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
        color: #7CB342 !important;
        font-weight: 600 !important;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #C5E1A5;
    }
    
    .contact-card {
        flex-direction: row;
        text-align: left;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        gap: 0.75rem;
        position: static !important;
        background: white !important;
        border: 1px solid #C5E1A5 !important;
        border-radius: 0.5rem !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    }
    
    .contact-card:last-child {
        margin-bottom: 0;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        flex-shrink: 0;
        position: static !important;
    }
    
    .contact-info {
        flex: 1;
        min-width: 0;
        position: static !important;
    }
    
    .contact-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        word-break: break-word;
        position: static !important;
        font-weight: 600 !important;
        color: #212529 !important;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        position: static !important;
    }
    
    .contact-detail {
        font-size: 0.85rem;
        word-break: break-word;
        position: static !important;
        line-height: 1.4;
    }
    
    .contact-detail i {
        margin-right: 0.25rem;
    }
    
    /* Subscriptions Table Mobile */
    #tableReceiveSubscriptions tbody td:first-child,
    #tableAuthorizedToSendSubscriptions tbody td:first-child {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        padding: 0;
    }
    
    #tableReceiveSubscriptions tbody td:first-child::before,
    #tableAuthorizedToSendSubscriptions tbody td:first-child::before {
        display: none;
    }
    
    #tableReceiveSubscriptions tbody tr,
    #tableAuthorizedToSendSubscriptions tbody tr {
        padding-right: 3rem;
    }
    
    /* Specialty Groups Table Mobile */
    #tableSpecialtyGroups tbody td:last-child {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        padding: 0;
    }
    
    #tableSpecialtyGroups tbody td:last-child::before {
        display: none;
    }
    
    #tableSpecialtyGroups tbody tr {
        padding-right: 3rem;
    }
    
    /* Steps Container */
    .steps-container {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .step-badge {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Communication Cards */
    .communication-card .communication-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .communication-logo img {
        max-width: 150px;
        max-height: 50px !important;
    }
    
    /* Modal Search Controls */
    .search-controls {
        flex-direction: column;
    }
    
    .search-select {
        width: 100%;
    }
    
    .btn-search-gradient {
        width: 100%;
    }
    
    /* Form Cards */
    .form-card-body {
        padding: 1rem;
    }
    
    /* Action Buttons */
    .action-buttons,
    .action-buttons-sticky,
    .nav-buttons {
        padding: 0.75rem;
    }
    
    .btn-nav {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Timeline */
    .timeline-item {
        gap: 0.75rem;
    }
    
    .timeline-marker {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }
    
    .timeline-item:not(:last-child) .timeline-marker::after {
        top: 30px;
        left: 15px;
    }
    
    /* Badges - make more compact */
    .status-badge,
    .system-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
    }
}

/* Mobile Phones (576px and below) */
@media (max-width: 576px) {
        /* Section Cards - Prevent overlap and ensure proper stacking */
    .section-card {
        margin-bottom: 0.75rem;
        border-radius: 0.375rem;
        position: relative;
        z-index: 1;
        overflow: hidden;
    }
    
    .section-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(to right, #FFEB3B 0%, #AED581 100%);
        z-index: 2;
    }
    
    .section-header {
        padding: 0.75rem;
    }
    
    .section-body {
        padding: 0.5rem;
    }
    
    .section-title {
        font-size: 0.95rem;
    }
    
    /* Smaller buttons */
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Reduce table card padding more */
    .data-table tbody tr {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 0.25rem;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    /* Contact cards - more compact */
    .contact-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Institution items in modals */
    .institution-item,
    .subscription-row {
        padding: 0.75rem;
    }
    
    .institution-item-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .institution-item-actions .btn {
        width: 100%;
    }
    
    /* Profile items more compact */
    .profile-item {
        margin-bottom: 0.75rem;
    }
    
    /* Container main - less horizontal padding */
    .container-main {
        padding: 0 0.5rem 1.5rem;
    }
}

[data-step-nav] {
    pointer-events: none;
}

.communication-lg-checkbox {
    font-size: 2rem;
    padding-top: 0;
    margin-top: 0;
}

.communication-sm-checkbox {
    font-size: 1.5rem;
    margin-top: 0;
}

/* Ensure step panes are properly hidden */
.step-pane.d-none {
    display: none !important;
}

/* Style for required field asterisks */
label .text-danger {
    margin-left: 2px;
    font-weight: bold;
}

/* Secondary Address Toggle Button */
.secondary-address-toggle-btn {
    width: 100%;
    background: linear-gradient(135deg, #fafff7 0%, #f8fdf5 100%);
    border: 2px dashed #C5E1A5;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 2rem;
    text-align: center;
    color: inherit;
    font-family: inherit;
}

    .secondary-address-toggle-btn:hover {
        border-color: #7CB342;
        background: linear-gradient(135deg, #f8fdf5 0%, #f1f8e9 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(124, 179, 66, 0.15);
    }

        .secondary-address-toggle-btn:focus {
        outline: 3px solid #4A90E2;
        outline-offset: 2px;
    }

/* Active state for institution selection buttons */
.btn-add-ecs.active {
    background: linear-gradient(135deg, #FFEB3B 0%, #FDD835 100%);
    color: #1a1a1a;
    border-color: #F9A825;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 235, 59, 0.4);
}

.btn-add-scs.active {
    background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%);
    color: white;
    border-color: #558B2F;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(124, 179, 66, 0.4);
}

/* ====================================================================
   CONTACT CHANGE REPORT STYLES
   ==================================================================== */
.report-validation-error {
    display: none;
}

.report-btn-spinner {
    display: none;
}

.report-btn-loading-text {
    display: none;
}

.contact-change-report-card {
    border-radius: 8px;
}

.contact-change-report-card .card-header {
    border-radius: 8px 8px 0 0;
}

.contact-change-report-table th {
    white-space: nowrap;
}

.contact-change-report-results .alert ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Fields Changed Badge */
.fields-changed-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 0.25rem;
    cursor: help;
    white-space: normal;
    display: inline-block;
    max-width: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.fields-changed-badge:hover {
    opacity: 0.9;
}

/* Highlight changed fields in the table */
.field-changed-highlight {
    background-color: #fff3cd !important;
    font-weight: 600 !important;
    position: relative;
}

.field-changed-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #ffc107;
}

/* Ensure table striping still works with highlights */
.table-striped tbody tr:nth-of-type(odd) .field-changed-highlight {
    background-color: #ffe69c !important;
}

.table-hover tbody tr:hover .field-changed-highlight {
    background-color: #ffecb5 !important;
}

/* ====================================================================
   CONTACT CHANGE REPORT - MULTIPLE INSTITUTIONS DISPLAY
   ==================================================================== */

/* Contact group visual separation */
#contactChangeReportTable .contact-group-even {
    background-color: #ffffff;
}

#contactChangeReportTable .contact-group-odd {
    background-color: #f0f4f8;
}

/* Separator between contact groups */
#contactChangeReportTable tbody tr:not(.institution-row) td {
    border-top: 1px solid #dee2e6 !important;
    padding-top: 12px !important;
}

/* Additional institution rows - indented and styled */
#contactChangeReportTable .institution-row td {
    border-top: 1px dashed #6c757d !important;
    background-color: #f8f9fa !important;
}

/* Indent the institution columns on additional rows */
#contactChangeReportTable .institution-row .institution-cell {
    padding-left: 30px !important;
    font-style: italic;
    color: #495057;
}

/* Arrow indicator for additional institutions */
#contactChangeReportTable .institution-row .institution-cell i {
    color: #6c757d;
    font-size: 1.1em;
}

/* Hover effect for entire contact group */
#contactChangeReportTable tbody tr.contact-group-even:hover,
#contactChangeReportTable tbody tr.contact-group-odd:hover {
    background-color: #fff3cd !important;
}

/* Badge for contacts with multiple institutions */
.multi-institution-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #6c757d;
    color: white;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 8px;
}

/* Search box styling */
#searchResults {
    border: 2px solid #dee2e6;
    padding: 0.75rem;
    font-size: 1rem;
}

#searchResults:focus {
    border-color: #adb5bd;
    box-shadow: 0 0 0 0.25rem rgba(173, 181, 189, 0.25);
}

#searchResultCount {
    padding: 0.5rem 1rem;
    font-weight: normal;
}

#clearSearch {
    transition: all 0.2s;
}

#clearSearch:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Sticky table header for better horizontal scrolling */
#contactChangeReportTable thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Table container with max height for independent scrolling */
.contact-report-table-container {
    max-height: 600px;
    overflow: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    position: relative;
}

/* Ensure table takes full width in container */
.contact-report-table-container .table {
    margin-bottom: 0;
}

/* ====================================================================
   ADMIN DASHBOARD STYLES
   ==================================================================== */
.dashboard-section {
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.dashboard-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    position: relative; /* Ensure badges position within the card */
}

    .dashboard-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .dashboard-card h3 {
        margin-top: 0;
        color: #495057;
        font-size: 1.25rem;
        border-bottom: 2px solid #007bff;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }

.count-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.system-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
}

    .system-count.total {
        font-weight: bold;
        background: #e9ecef;
        border-top: 2px solid #007bff;
    }

.system-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.count-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.system-count.total .count-value {
    color: #495057;
}

.admin-links-section {
    margin-top: 2rem;
}

.admin-links-section ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}

.admin-links-section li {
    padding: 0.5rem;
}

.admin-links-section li a {
        text-decoration: none;
        color: #007bff;
    }

.admin-links-section li a:hover {
                text-decoration: underline;
            }

/* Dashboard institution cards */
.dashboard-section-institutions {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.dashboard-card-institution h3 {
    border-bottom: 2px solid #28a745;
}

/* Dashboard section headers */
.dashboard-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #dee2e6;
}

    .dashboard-section-header h2 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: #495057;
    }

    .dashboard-section-header .section-icon {
        font-size: 1.75rem;
        color: #007bff;
    }

    .dashboard-section-header .section-count {
        margin-left: auto;
        padding: 0.5rem 1rem;
        background: #e9ecef;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #495057;
    }

/* Dashboard card icons */
.dashboard-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

    .dashboard-card-header .card-icon {
        font-size: 1.25rem;
        color: #6c757d;
    }

/* Contact cards - blue accent */
.dashboard-card-contact h3 {
    border-bottom-color: #007bff;
}

.dashboard-card-contact .card-icon {
    color: #007bff;
}

/* Institution cards - green accent */
.dashboard-card-institution h3 {
    border-bottom-color: #28a745;
}

.dashboard-card-institution .card-icon {
    color: #28a745;
}

/* Warning state for pending items */
.count-badge-warning {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: #ffc107;
    color: #000;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Empty state */
.count-empty {
    opacity: 0.5;
}

/* Summary stats bar */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.summary-stat {
    text-align: center;
    padding: 0.5rem;
}

    .summary-stat .stat-value {
        font-size: 2rem;
        font-weight: bold;
        color: #495057;
        display: block;
    }

    .summary-stat .stat-label {
        font-size: 0.85rem;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 0.25rem;
    }

    .summary-stat.stat-pending .stat-value {
        color: #ffc107;
    }

        .summary-stat.stat-active .stat-value {
        color: #28a745;
    }

/* ====================================================================
   MOBILE FIX: Prevent institution table styles from affecting profile/other sections
   ==================================================================== */
@media (max-width: 768px) {
    /* Reset any table styles that might leak into non-table sections */
    .section-card:not(:has(table)) .section-body > * {
        position: static !important;
    }
    
    /* Profile section specifically should never have positioned elements */
    .profile-info td,
    .profile-info th,
    .profile-item td,
    .profile-item th {
        position: static !important;
        transform: none !important;
        padding: 0.5rem 0 !important;
    }
    
    /* Override any absolute positioning on elements that are NOT in the institution tables */
    .section-body:not(:has(#tableECSInstitutionsContacts)):not(:has(#tableSCSInstitutionsContacts)) td:first-child,
    .section-body:not(:has(#tableECSInstitutionsContacts)):not(:has(#tableSCSInstitutionsContacts)) td:last-child {
        position: static !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    /* Ensure only ACTUAL institution table buttons get special positioning */
        #tableECSInstitutionsContacts,
    #tableSCSInstitutionsContacts {
        /* Only institution tables should have special mobile layout */
    }
}

/* ====================================================================
   EMPLOYEE DETAILS MODAL - ENHANCED STYLES
   ==================================================================== */

/* Modal size */
#employeeModal .modal-dialog {
        max-width: 900px;
}

/* Modal sections */
#employeeModal .card {
        transition: transform 0.2s ease;
}

#employeeModal .card:hover {
        transform: translateY(-2px);
}

/* Section headers */
#employeeModal .card-subtitle {
        border-bottom: 2px solid #e9ecef;
        padding-bottom: 0.5rem;
}

/* Copy to clipboard buttons */
#employeeModal button[onclick*="copyToClipboard"] {
        transition: transform 0.2s;
        opacity: 0.7;
}

#employeeModal button[onclick*="copyToClipboard"]:hover {
        opacity: 1;
        transform: scale(1.1);
}

/* Clickable links */
#employeeModal a[href^="mailto:"],
#employeeModal a[href^="tel:"] {
        color: #0d6efd;
        transition: color 0.2s;
}

#employeeModal a[href^="mailto:"]:hover,
#employeeModal a[href^="tel:"]:hover {
        color: #0a58ca;
        text-decoration: underline;
}

/* Status badges in modal */
#employeeModal .badge {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
}

/* Field labels */
#employeeModal .text-muted {
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
}

/* Field values */
#employeeModal .fw-bold,
#employeeModal .fw-semibold {
        color: #212529;
}

/* Modal footer buttons */
#employeeModal .modal-footer .btn {
        min-width: 100px;
}