/* ===== ALTA TRUST PORTAL - SHARED COMPONENT STYLES ===== */

/* ===== ACCESSIBILITY - SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-primary, #38BA96);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--brand-primary-dark, #2a9a7a);
    outline-offset: 2px;
}

/* Focus visible styles for better keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--brand-primary, #38BA96);
    outline-offset: 2px;
}

/* Exclude container/layout elements from focus outline */
.login-container:focus-visible,
.login-container *:focus-visible:not(input):not(button):not(a):not(select):not(textarea),
.page:focus-visible,
main:focus-visible,
article:focus-visible,
.content:focus-visible,
body:focus-visible,
html:focus-visible,
div:focus-visible:not(.form-check):not(.dropdown) {
    outline: none !important;
}

/* ===== BRAND COLORS & DESIGN TOKENS ===== */
/* Update these variables to change colors site-wide */
:root {
    /* Primary Brand Colors */
    --brand-primary: #38BA96;
    --brand-primary-light: #72D5B9;
    --brand-primary-dark: #2a9a7a;
    --brand-primary-rgb: 56, 186, 150;

    /* Success Colors */
    --color-success: #27ae60;
    --color-success-light: #2ecc71;
    --color-success-alt: #28a745;

    /* Warning Colors */
    --color-warning: #E4CC37;
    --color-warning-alt: #FF931F;
    --color-warning-dark: #856404;

    /* Danger/Error Colors - Caution/Delete Actions */
    --color-danger: #C14A4F;
    --color-danger-hover: #A7393F;
    --color-danger-dark: #A7393F;
    --color-danger-text: #721c24;
    --color-error: #C14A4F;

    /* Utility Action Colors */
    --color-utility: #2F6E9A;
    --color-utility-hover: #285D82;

    /* Neutral Colors */
    --color-text-dark: #0F131A;
    --color-text-muted: #6c757d;
    --color-border-light: #dee2e6;

    /* Common Gradients */
    --gradient-primary: var(--brand-primary);
    --gradient-primary-dark: var(--brand-primary);
    --gradient-success: var(--color-success);
    --gradient-danger: var(--color-danger);

    /* Shadows - Normalized & Subtle */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.14);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
    --shadow-focus: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.15);
    --shadow-primary-sm: 0 2px 8px rgba(var(--brand-primary-rgb), 0.2);
    --shadow-primary-md: 0 4px 12px rgba(var(--brand-primary-rgb), 0.25);
    --shadow-success-sm: 0 2px 8px rgba(40, 167, 69, 0.2);
    --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.08);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50px;

    /* Typography - Fonts */
    --font-heading: 'Josefin Sans', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
}

/* ===== GLOBAL TYPOGRAPHY ===== */

html {
    font-size: 103.125%; /* 16.5px equivalent, respects browser settings */
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h1 {
    font-size: 1.875rem; /* 28px */
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem; /* 24px */
    line-height: 1.25;
}

h3 {
    font-size: 1.25rem; /* 20px */
    line-height: 1.3;
}

h4 {
    font-size: 1.125rem; /* 18px */
    line-height: 1.35;
}

h5 {
    font-size: 1rem; /* 16px */
    line-height: 1.4;
}

h6 {
    font-size: 0.875rem; /* 14px */
    line-height: 1.45;
}

/* ===== LAYOUT CONTAINERS ===== */

.entity-edit-container,
.user-management-container,
.manage-layout-container,
.login-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

/* ===== PAGE HEADERS ===== */

.page-header {
    margin-bottom: 2rem;
    position: relative;
}

.page-header-content,
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.page-header-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header h2 {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.page-header .text-muted {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Gradient Page Header Variant */
.page-header.page-header-gradient {
    background: var(--brand-primary) !important;
    padding: 1.5rem 2rem !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 15px rgba(56, 186, 150, 0.2) !important;
}

.page-header.page-header-gradient h2 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.page-header.page-header-gradient .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Compact page header for login/auth pages */
.login-container .page-header.page-header-gradient {
    padding: 1rem 1.5rem !important;
}

.login-container .page-header.page-header-gradient h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.login-container .page-header.page-header-gradient .text-muted {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== CARD STYLING - MODERN GLASS EFFECT ===== */

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 186, 150, 0.1);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    overflow: visible;
}

.card-body {
    padding: 1.5rem;
    overflow: visible;
}

/* Compact card body for login/auth pages */
.login-container .card-body {
    padding: 2rem;
}

.login-container .form-section {
    margin-bottom: 0.5rem;
}

.login-container .form-group {
    margin-bottom: 1rem;
}

/* Compact card body for stats/dashboard cards */
.card.text-center .card-body {
    padding: 1.25rem 1rem;
}

/* Dashboard tables - reduce card body padding */
.entity-edit-container .card .card-body {
    padding: 1.5rem;
}

.card-header {
    background: var(--brand-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.card-header h5 {
    font-weight: 600;
    margin: 0;
}

/* Section titles inside card headers should be white */
.card-header .section-title {
    color: white;
    margin-bottom: 0;
}

/* Text-muted inside card headers should be light/white */
.card-header .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.card-header .section-title::after {
    display: none;
}

/* Card with visible overflow (for dropdowns) */
.card.card-overflow-visible,
.card-overflow-visible .card-body {
    overflow: visible !important;
}

/* ===== FORM SECTIONS ===== */

.form-section {
    margin-bottom: 1rem;
}

.form-section:last-of-type {
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    color: var(--brand-primary);
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    letter-spacing: -0.3px;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 2px;
}

/* Hide underline for home page section titles */
.solutions-section .section-title::after {
    display: none;
}

/* Home page section title - simpler style without underline */
.solutions-section .section-title {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-bottom: 0;
}

.section-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ===== FORM GROUPS & LABELS ===== */

.form-group {
}

.form-label {
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.65rem;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.form-label.required::after {
    content: " *";
    color: var(--color-error);
    font-weight: 700;
}

/* ===== FORM CONTROLS ===== */

.form-control,
.form-select {
    border: 1px solid #e8ecef;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    background-color: #fafbfc;
    transition: all 0.2s ease-in-out;
    font-weight: 400;
    width: 100%;
}

.form-control:not(:placeholder-shown),
.form-select:not([value="0"]) {
    background-color: #fff;
}

.form-control:hover,
.form-select:hover {
    border-color: #d0d7de;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    background-color: #fff;
    box-shadow: var(--shadow-focus);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
    font-weight: 300;
}

/* Form Select Arrow Styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2338BA96' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Form Check - Layout */
.form-check {
    padding: 0.85rem 1rem;
    margin-left: 25px;
    margin-top: 0;
    margin-bottom: 0;
}

.form-check-label {
    font-weight: 500;
    color: var(--color-text-dark);
    cursor: pointer;
    font-size: 1rem;
}

/* ===== VALIDATION MESSAGES ===== */

.validation-message {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

.text-danger {
    font-size: 0.98rem;
    margin-top: 0.25rem;
}

/* ===== ALERTS ===== */

.alert {
    border-radius: 12px;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    border: none;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(193, 74, 79, 0.12);
    color: var(--color-danger-dark);
    border-left: 4px solid var(--color-error);
}

.alert-success {
    background: rgba(39, 174, 96, 0.12);
    color: var(--color-success);
    border-left: 4px solid var(--color-success-light);
}

.alert strong {
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ===== BUTTONS ===== */

.btn {
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-primary-sm);
}

.btn-primary:hover {
    background-color: var(--brand-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-md);
    color: white;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary-sm);
}

/* Danger/Caution Button - Delete Actions */
.btn-danger {
    background-color: var(--color-danger);
    color: white;
}

.btn-danger:hover {
    background-color: var(--color-danger-hover);
    transform: translateY(-2px);
    color: white;
}

/* Utility Button - Print, Export, etc. */
.btn-utility {
    background-color: var(--color-utility);
    color: white;
}

.btn-utility:hover {
    background-color: var(--color-utility-hover);
    transform: translateY(-2px);
    color: white;
}

/* Secondary/Outline Button */
.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    color: white;
}

/* Alternative Primary Button Style (Account pages) */
.btn-primary-alt {
    background-color: var(--brand-primary-light);
    border: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-alt:hover {
    background-color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary-sm);
}

.btn-primary-alt:active {
    background-color: var(--brand-primary-dark);
    transform: translateY(0);
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* ===== FORM ACTIONS ===== */

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(56, 186, 150, 0.1);
}

/* Stacked form actions (for login page) */
.form-actions-stacked {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-actions-stacked .divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.25rem 0;
    color: var(--color-text-muted);
}

.form-actions-stacked .divider::before,
.form-actions-stacked .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.form-actions-stacked .divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Links (login page links) */
.quick-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(56, 186, 150, 0.1);
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-link:hover {
    color: var(--brand-primary-dark);
    text-decoration: underline;
}

.quick-link .link-icon {
    font-size: 1rem;
}

/* ===== ACTION MENU STYLES ===== */

.action-menu-container {
    position: relative;
    display: inline-block;
}

/* When container has an open popup, elevate its stacking context */
.action-menu-container:has(.action-menu-popup) {
    z-index: 99999;
}

.btn-action-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brand-primary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: bold;
    line-height: 1;
}

.btn-action-menu:hover {
    background-color: rgba(56, 186, 150, 0.1);
    transform: scale(1.1);
}

.action-menu-popup {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 99999;
    overflow: hidden;
    animation: menuFadeIn 0.2s ease-out;
}

/* Flip menu to appear above when near bottom of screen */
.action-menu-popup.flip-up {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.action-menu-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-dark);
    font-size: 0.9rem;
}

.action-menu-item:hover {
    background: rgba(56, 186, 150, 0.08);
    color: var(--brand-primary);
}

.action-menu-item.danger {
    color: var(--color-danger);
}

.action-menu-item.danger:hover {
    background: rgba(220, 53, 69, 0.08);
}

/* ===== TABLE STYLING ===== */

.table {
    margin-bottom: 0;
}

.table thead,
.table thead.table-light {
    background: var(--brand-primary) !important;
}

.table thead tr,
.table thead.table-light tr {
    background: transparent !important;
}

.table thead th,
.table thead.table-light th {
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: white !important;
    background: transparent !important;
}

.table td {
    vertical-align: middle;
    position: relative;
    padding: 1rem 1.25rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(56, 186, 150, 0.05);
}

.table-responsive {
    overflow: visible !important;
}

/* Ensure table cells with action menus don't clip popups */
.table td {
    overflow: visible;
}

tbody {
    overflow: visible;
}

tr {
    overflow: visible;
}

/* Elevate row and cell containing open action menu */
tr:has(.action-menu-popup) {
    position: relative;
    z-index: 99999;
}

td:has(.action-menu-popup) {
    position: relative;
    z-index: 99999;
}

/* Ensure card containing open menu has highest stacking context */
.card:has(.action-menu-popup) {
    z-index: 1000;
}

/* ===== MODAL STYLES ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    padding: 1rem;
    pointer-events: auto;
    overflow: hidden;
}

/* Prevent body scroll when modal is open */
body:has(.modal-overlay) {
    overflow: hidden;
}

.modal-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
    pointer-events: auto;
    position: relative;
    z-index: 100001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: none;
    background: var(--brand-primary);
    border-radius: 12px 12px 0 0;
}

.modal-title {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal close button - scoped to modals only */
.modal-header .btn-close,
.modal-dialog .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    backdrop-filter: blur(10px);
    opacity: 1;
}

.modal-header .btn-close:hover,
.modal-dialog .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

/* Ensure Bootstrap toast close button shows white X */
.toast .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    padding: 2rem;
    padding-bottom: 1rem;
    overflow-y: auto;
    flex: 1;
    pointer-events: auto;
}

/* Reduce form-actions spacing when inside modal */
.modal-body .form-actions,
.modal-container .modal-body .form-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    margin-bottom: 0;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(56, 186, 150, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Modal Container (alternative to modal-dialog) */
.modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
    pointer-events: auto;
    position: relative;
    z-index: 100001;
    overflow: hidden;
}

.modal-container-small {
    max-width: 550px;
}

.modal-container-wide {
    max-width: 900px;
}

.modal-container-large {
    max-width: 1000px;
}

.modal-container .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: none;
    background: var(--brand-primary);
    border-radius: 0;
    flex-shrink: 0;
}

.modal-container .modal-header h3 {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}

.modal-container .modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
}

.modal-container .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.modal-container .modal-body {
    padding: 2rem;
    background: white;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.modal-container .modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(56, 186, 150, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: white;
    flex-shrink: 0;
}

.modal-container .modal-body p {
    margin-bottom: 1rem;
    color: var(--color-text-dark);
    line-height: 1.6;
}

.modal-container .modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* Questionnaire View Modal - Scrollable answers list */
.questionnaire-modal {
    height: 85vh;
    max-height: 85vh;
}

.questionnaire-modal .modal-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1.5rem 2rem;
}

.questionnaire-modal .modal-footer {
    border-top: 1px solid #dee2e6;
    gap: 0.5rem;
}

.questionnaire-info-header {
    flex: 0 0 auto;
}

.questionnaire-answers-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-right: 0.5rem;
}

/* ===== SUCCESS/CHECKOUT PAGE CONTAINERS ===== */

.success-container,
.payment-container,
.verification-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(56, 186, 150, 0.03);
}

/* Success/Checkout Cards */
.success-card,
.checkout-card {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    animation: slideUp 0.6s ease-out;
}

.checkout-card {
    max-width: 700px;
    padding: 0;
    overflow: hidden;
}

/* Checkout Header */
.checkout-header {
    background: var(--brand-primary);
    color: white;
    padding: 2.5rem;
    text-align: center;
}

.checkout-header h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.checkout-header .text-muted {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.checkout-header-error {
    background: var(--color-danger);
}

.checkout-body {
    padding: 3rem;
}

.checkout-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.security-notice i {
    color: var(--color-success);
    font-size: 1.1rem;
}

/* Success Icon */
.success-icon-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-success-alt);
    box-shadow: var(--shadow-success-sm);
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.success-icon {
    font-size: 60px;
    color: white;
    font-weight: bold;
    animation: checkmark 0.4s ease-out 0.5s both;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i,
.success-icon i::before {
    display: block;
    width: 100%;
    height: auto;
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Success Content */
.success-content {
    text-align: center;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.success-heading {
    color: var(--brand-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.success-message {
    margin-bottom: 2.5rem;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    line-height: 1.7;
    margin: 0;
}

/* Subscription Info Box - Left align list items */
.subscription-info-box ul {
    text-align: left;
    display: inline-block;
}

/* ===== PAYMENT SUMMARY BOX ===== */

.payment-summary,
.payment-summary-box {
    background: rgba(56, 186, 150, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(56, 186, 150, 0.1);
}

.payment-summary-box h5 {
    color: var(--brand-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.summary-row,
.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    color: var(--color-text-dark);
}

.service-row {
    border-bottom: 1px solid rgba(56, 186, 150, 0.15);
}

.summary-row .amount,
.service-amount {
    font-weight: 600;
    color: var(--brand-primary);
}

.service-label {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    font-weight: 500;
}

.service-amount {
    font-size: 1.25rem;
}

.summary-row.surcharge-row {
    background: rgba(255, 193, 7, 0.08);
    margin: 0.5rem -1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.summary-row.surcharge-row span:first-child {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.summary-row .surcharge-amount {
    font-size: 1rem;
    color: var(--color-warning-dark);
}

.summary-total,
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 2px solid rgba(56, 186, 150, 0.2);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.total-label {
    font-size: 1.3rem;
    color: var(--color-text-dark);
    font-weight: 700;
}

.total-amount {
    font-size: 2rem;
    color: var(--brand-primary);
    font-weight: 700;
}

.fee-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(56, 186, 150, 0.2);
}

/* ===== INFO GRIDS ===== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Two-column info grid for payment pages with long content */
.info-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
}

@media (max-width: 768px) {
    .info-grid-2col {
        grid-template-columns: 1fr;
    }
}

.info-item label {
    display: block;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    font-weight: 500;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Info Cards Grid */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-card {
    background: rgba(56, 186, 150, 0.05);
    border: 1px solid rgba(56, 186, 150, 0.15);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.info-icon i,
.info-icon i::before {
    display: block;
    width: 100%;
    height: auto;
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.info-card h5 {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== CLIENT INFO BOX ===== */

.client-info-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.client-info-box h5 {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.client-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.25rem;
}

.client-email {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.advisor-info {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

/* Client Badge */
.client-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(56, 186, 150, 0.08);
    border: 2px solid rgba(56, 186, 150, 0.2);
    border-radius: 50px;
    font-weight: 600;
    color: var(--brand-primary);
}

.badge-icon {
    font-size: 1.2rem;
}

/* ===== FILTER CONTROLS ===== */

.filter-controls {
    padding: 1.5rem;
    background: rgba(56, 186, 150, 0.05);
    border: 2px solid rgba(56, 186, 150, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.filter-controls .form-label {
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-controls .form-control,
.filter-controls .form-select {
    border: 2px solid #e8ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
}

.filter-controls .form-control:focus,
.filter-controls .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-focus);
}

/* ===== PROGRESS BAR ===== */

.progress-card {
    background: rgba(56, 186, 150, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(56, 186, 150, 0.15);
    box-shadow: var(--shadow-sm);
    border-radius: 16px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-card .card-body {
    padding: 1.5rem;
}

.progress {
    height: 2rem;
    border-radius: 12px;
    background-color: rgba(56, 186, 150, 0.1);
    box-shadow: var(--shadow-inset);
    overflow: hidden;
}

.progress-bar {
    background: var(--brand-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s ease;
    box-shadow: var(--shadow-primary-sm);
}

/* ===== QUESTIONNAIRE SECTION STYLES ===== */

.section-card {
    margin-bottom: 1rem !important;
}

.section-card.section-has-errors {
    border: 2px solid rgba(231, 76, 60, 0.3);
}

/* Questionnaire collapsible section header - more specific selector */
.section-card > .card-header.section-header {
    background: var(--brand-primary);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    color: white;
}

.section-card > .card-header.section-header:hover {
    background: #2a9a7a;
}

.section-card > .card-header.section-header.expanded {
    background: var(--brand-primary);
}

/* Section header text should be white */
.section-card > .card-header.section-header .section-title {
    color: white;
    margin-bottom: 0;
}

.section-card > .card-header.section-header .section-title::after {
    display: none;
}

.section-card > .card-header.section-header .section-description {
    color: rgba(255, 255, 255, 0.85) !important;
}

.section-card > .card-header.section-header .section-icon {
    color: white;
}

.section-card > .card-header.section-header .section-status {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.section-card > .card-header.section-header .section-status.complete {
    background: rgba(40, 167, 69, 0.8);
}

.section-card > .card-header.section-header .section-status.in-progress {
    background: rgba(255, 193, 7, 0.8);
    color: #000;
}

.section-card > .card-header.section-header .mini-progress-text {
    color: white;
}

/* Mini progress bar in section header */
.section-progress-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-card > .card-header.section-header .mini-progress-bar {
    width: 80px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.section-card > .card-header.section-header .mini-progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.section-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.section-info {
    flex: 1;
}

.section-icon {
    display: inline-block;
    color: var(--brand-primary);
    font-size: 0.9rem;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

/* Section Body - Collapsible Content */
.section-body {
    padding: 2rem 1.5rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FORM HELP TEXT ===== */

.form-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.4;
}

/* ===== INPUT GROUP (Currency) ===== */

.input-group-text {
    background: rgba(var(--brand-primary-rgb), 0.08);
    border: 2px solid #e8ecef;
    border-right: none;
    color: var(--brand-primary);
    font-weight: 600;
    border-radius: 10px 0 0 10px;
    padding: 0.85rem 1rem;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group .form-control:focus {
    border-left: 2px solid var(--brand-primary);
}

/* Currency Input Formatting */
.currency-input {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* ===== FORM ACTIONS BUTTONS ===== */

.form-actions-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Sticky Form Actions (Questionnaire) */
.form-actions.form-actions-sticky {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding-bottom: 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

/* ===== ERROR HIGHLIGHTING ===== */

.has-error {
    background: rgba(231, 76, 60, 0.03);
    border-left: 4px solid var(--color-error);
    padding-left: 1rem;
    margin-left: -1rem;
    border-radius: 8px;
    animation: pulse-error 1s ease-in-out;
}

@keyframes pulse-error {
    0%, 100% { background: rgba(231, 76, 60, 0.03); }
    50% { background: rgba(231, 76, 60, 0.08); }
}

.has-error .form-label {
    color: var(--color-error) !important;
}

.has-error .form-control,
.has-error .form-select {
    border-color: var(--color-error);
    background-color: rgba(231, 76, 60, 0.05);
}

.has-error .form-control:focus,
.has-error .form-select:focus {
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
}

/* Highlight Question Animation */
.highlight-question {
    animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
    0%, 100% {
        background: rgba(231, 76, 60, 0.03);
        transform: scale(1);
    }
    50% {
        background: rgba(231, 76, 60, 0.12);
        transform: scale(1.01);
    }
}

/* ===== ERROR SUMMARY ===== */

.error-summary {
    background: rgba(193, 74, 79, 0.12);
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1);
}

.error-summary h5 {
    color: var(--color-danger-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.error-summary ul {
    margin: 0;
    padding-left: 1.5rem;
}

.error-summary li {
    color: var(--color-danger-dark);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-summary li:hover {
    color: var(--color-error);
    text-decoration: underline;
}

/* ===== TEXTAREA ===== */

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ===== FORM LABEL SHAKE ANIMATION ===== */

.form-label.text-danger {
    color: var(--color-error) !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== HOME PAGE STYLES ===== */

/* Hero Section */
.hero-section {
    background: var(--brand-primary);
    color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Quick Actions Grid */
.quick-actions {
    margin-bottom: 4rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-card {
    background: white;
    border: 2px solid var(--color-border-light);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-primary);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.action-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

.action-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Features Section */
.features-section {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--brand-primary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Resources Section */
.resources-section {
    margin-bottom: 3rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--color-border-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.resource-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ===== APPOINTMENT STYLES ===== */

.appointment-info {
    background: rgba(56, 186, 150, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid rgba(56, 186, 150, 0.1);
}

.appointment-description {
    margin-bottom: 2rem;
}

.appointment-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.appointment-action {
    text-align: center;
    padding: 1.5rem 0;
}

.calendly-button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--brand-primary);
    border: none;
    box-shadow: var(--shadow-primary-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color: white;
}

.calendly-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-md);
    background: #2a9a7a;
    color: white;
}

.expectation-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expectation-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(56, 186, 150, 0.1);
    transition: all 0.2s ease;
}

/* ===== PAYMENT OPTIONS ===== */

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ===== ROLE DROPDOWN ===== */

.role-dropdown {
    position: relative;
}

.role-dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    background-color: #fff;
    transition: all 0.3s ease;
    text-align: left;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.role-dropdown .dropdown-toggle::after {
    display: none;
}

.role-dropdown .dropdown-toggle:hover {
    border-color: var(--brand-primary-light);
    background-color: #fff;
}

.role-dropdown .dropdown-toggle:focus {
    border-color: var(--brand-primary-light);
    box-shadow: var(--shadow-focus);
    outline: none;
    background-color: #fff;
}

.role-dropdown {
    position: relative;
}

.role-dropdown .dropdown-menu {
    padding: 0.15rem 0 !important;
    border-radius: 8px;
    border: 1px solid rgba(56, 186, 150, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 100%;
    position: absolute;
    z-index: 1060;
    max-height: 200px;
    overflow-y: auto;
}

.role-dropdown .dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.role-dropdown .dropdown-item {
    padding: 0.15rem 0.75rem !important;
    margin: 0 !important;
}

.role-dropdown .dropdown-item .form-check {
    margin: 0 !important;
    padding: 0.1rem 0 0.1rem 1.5em !important;
    min-height: unset !important;
}

.role-dropdown .dropdown-item .form-check-input {
    margin-left: -1.5em;
    margin-top: 0.2em;
    float: left;
}

.role-dropdown .dropdown-item .form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1.2;
    margin-bottom: 0;
}

.role-dropdown .dropdown-item:hover {
    background-color: rgba(56, 186, 150, 0.08);
}

/* Allow dropdown to escape modal overflow */
.modal-body {
    overflow: visible !important;
}

.modal-content {
    overflow: visible !important;
}

.form-group:has(.role-dropdown) {
    overflow: visible !important;
}

/* ===== RECONNECT MODAL ===== */

.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
}

#components-reconnect-modal[open] {
    animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, 
               components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
    opacity: 1;
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    border: 0;
    background-color: var(--brand-primary);
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

#components-reconnect-modal button:hover {
    background-color: var(--brand-primary-light);
}

/* ===== TOAST NOTIFICATIONS ===== */

.toast-container-blazor {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100002;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast-blazor {
    min-width: 300px;
    max-width: 450px;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease-out;
}

.toast-blazor.toast-success {
    background: var(--color-success-alt);
    color: white;
}

.toast-blazor.toast-error {
    background: var(--color-danger);
    color: white;
}

/* ===== QUESTIONNAIRE VERIFY PAGE (qv- prefix) ===== */

.qv-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    animation: qvFadeIn 0.5s ease-out;
}

@keyframes qvFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes qvSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes qvScaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes qvSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes qvShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.qv-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: qvSlideDown 0.6s ease-out;
}

.qv-icon-wrapper {
    margin-bottom: 1rem;
}

.qv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    font-size: 40px;
    font-weight: bold;
    animation: qvScaleIn 0.5s ease-out 0.2s both;
}

.qv-icon .bi {
    width: auto;
    height: auto;
    margin: 0;
    top: 0;
    position: static;
}

.qv-heading {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.qv-subtitle {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.qv-client-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(56, 186, 150, 0.08);
    border: 2px solid rgba(56, 186, 150, 0.2);
    border-radius: 50px;
    font-weight: 600;
    color: var(--brand-primary);
}

.qv-badge-icon {
    font-size: 1.2rem;
}

.qv-badge-text {
    font-size: 1rem;
}

/* Notice Card */
.qv-notice-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem;
    margin-bottom: 2rem;
    background: rgba(228, 204, 55, 0.08);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
    animation: qvSlideIn 0.6s ease-out 0.1s both;
}

.qv-notice-icon {
    font-size: 2.5rem;
    color: var(--color-warning);
    flex-shrink: 0;
}

.qv-notice-content {
    flex: 1;
}

.qv-notice-title {
    color: var(--color-warning-dark);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.qv-notice-text {
    color: var(--color-warning-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responses Card */
.qv-responses-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(56, 186, 150, 0.1);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    animation: qvSlideIn 0.6s ease-out 0.2s both;
}

.qv-responses-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--brand-primary);
    color: white;
}

.qv-responses-header-icon {
    font-size: 1.75rem;
}

.qv-responses-header-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}

.qv-responses-body {
    padding: 2rem;
}

.qv-section-group {
    margin-bottom: 2.5rem;
}

.qv-section-group:last-child {
    margin-bottom: 0;
}

.qv-section-title {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.qv-section-divider {
    height: 3px;
    background: var(--brand-primary);
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

.qv-qa-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(56, 186, 150, 0.03);
    border: 1px solid rgba(56, 186, 150, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.qv-qa-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(56, 186, 150, 0.2);
}

.qv-question-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qv-question-text {
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 1rem;
    line-height: 1.5;
}

.qv-required-indicator {
    color: var(--color-error);
    font-weight: bold;
    margin-left: 0.25rem;
}

.qv-help-text {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.4;
}

.qv-answer-col {
    display: flex;
    align-items: center;
}

.qv-answer-display {
    width: 100%;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid rgba(56, 186, 150, 0.15);
    border-radius: 10px;
    color: var(--color-text-dark);
    font-size: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Verified Banner */
.qv-verified-banner {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem;
    margin-bottom: 2rem;
    background: rgba(39, 174, 96, 0.08);
    border: 2px solid rgba(39, 174, 96, 0.3);
    border-radius: 16px;
    animation: qvSlideIn 0.6s ease-out 0.3s both;
}

.qv-verified-icon {
    font-size: 2.5rem;
    color: var(--color-success);
    flex-shrink: 0;
}

.qv-verified-content {
    flex: 1;
}

.qv-verified-title {
    color: var(--color-success);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.qv-verified-text {
    color: var(--color-success);
    font-size: 1rem;
    margin: 0;
}

/* Confirmation Card */
.qv-confirmation-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(56, 186, 150, 0.15);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    animation: qvSlideIn 0.6s ease-out 0.3s both;
}

.qv-confirmation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: rgba(56, 186, 150, 0.08);
    border-bottom: 2px solid rgba(56, 186, 150, 0.15);
}

.qv-confirmation-icon {
    font-size: 1.75rem;
    color: var(--brand-primary);
}

.qv-confirmation-title {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0;
}

.qv-confirmation-body {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Custom Checkboxes */
.qv-checkbox-wrapper {
    position: relative;
}

.qv-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.qv-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    padding: 1.25rem;
    background: rgba(56, 186, 150, 0.03);
    border: 2px solid rgba(56, 186, 150, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.qv-checkbox-label:hover {
    background: rgba(56, 186, 150, 0.08);
    border-color: rgba(56, 186, 150, 0.3);
    transform: translateX(5px);
}

.qv-checkbox-input:checked + .qv-checkbox-label {
    background: rgba(39, 174, 96, 0.08);
    border-color: rgba(39, 174, 96, 0.4);
}

.qv-checkbox-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(56, 186, 150, 0.3);
    border-radius: 6px;
    background: white;
    font-size: 16px;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.qv-checkbox-input:checked + .qv-checkbox-label .qv-checkbox-icon {
    background: var(--color-success);
    border-color: var(--color-success);
}

.qv-checkbox-text {
    flex: 1;
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 1rem;
    line-height: 1.5;
}

/* Action Area */
.qv-action-area {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: qvSlideIn 0.6s ease-out 0.4s both;
}

/* Modern Buttons */
.qv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
}

.qv-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.qv-btn:hover::before {
    width: 300px;
    height: 300px;
}

.qv-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.qv-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.qv-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qv-btn-icon {
    font-size: 1.3rem;
    z-index: 1;
}

.qv-btn-text {
    z-index: 1;
}

.qv-btn-primary {
    background: var(--brand-primary);
    color: white;
}

.qv-btn-primary:hover:not(:disabled) {
    box-shadow: var(--shadow-primary-md);
}

.qv-btn-secondary {
    background: #95a5a6;
    color: white;
}

.qv-btn-secondary:hover:not(:disabled) {
    box-shadow: var(--shadow-hover);
}

.qv-btn-success {
    background: var(--color-success);
    color: white;
}

.qv-btn-success:hover:not(:disabled) {
    box-shadow: var(--shadow-success-sm);
}

/* Error Message */
.qv-error-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    background: rgba(193, 74, 79, 0.08);
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    animation: qvShake 0.5s;
}

.qv-error-icon {
    font-size: 1.75rem;
    color: var(--color-error);
    flex-shrink: 0;
}

.qv-error-text {
    color: var(--color-danger-dark);
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qv-container {
        padding: 1.5rem 1rem;
    }

    .qv-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .qv-heading {
        font-size: 1.5rem;
    }

    .qv-subtitle {
        font-size: 1rem;
    }

    .qv-qa-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .qv-responses-header {
        padding: 1.25rem 1.5rem;
    }

    .qv-responses-body {
        padding: 1.5rem;
    }

    .qv-action-area {
        flex-direction: column;
    }

    .qv-btn {
        width: 100%;
        justify-content: center;
    }

    .qv-notice-card,
    .qv-verified-banner,
    .qv-error-message {
        flex-direction: column;
        text-align: center;
    }
}

.toast-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== VERIFY HEADER ===== */

.verify-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* ===== EXPECTATION ITEMS (Schedule Appointment) ===== */

.expectation-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.expectation-content h6 {
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 0.25rem;
}

.expectation-content p {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* ===== VERIFY ACTIONS ===== */

.verify-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.verify-actions .btn {
    min-width: 250px;
}

/* ===== FILTER SECTION ===== */

.filter-section {
    padding: 1.5rem;
    background: rgba(56, 186, 150, 0.05);
    border: 2px solid rgba(56, 186, 150, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* ===== BTN ADD USER ===== */

.btn-add-user {
    white-space: nowrap;
}

/* ===== ACTION SECTION ===== */

.action-section {
    margin-top: 2rem;
    text-align: center;
}

/* ===== FOOTER NOTE ===== */

.footer-note {
    margin-top: 2rem;
    text-align: center;
}

/* ===== PAYMENT OPTION CARDS ===== */

.payment-option-card {
    background: white;
    border: 2px solid rgba(56, 186, 150, 0.15);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.payment-option-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.payment-option-card .option-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 186, 150, 0.1);
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--brand-primary);
}

.payment-option-card .option-icon i,
.payment-option-card .option-icon i::before {
    display: block;
    width: 100%;
    height: auto;
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* ===== HOME PAGE STYLES ===== */

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin: 0;
}

.premium-section {
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.premium-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(var(--brand-primary-rgb), 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.premium-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    gap: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    box-shadow: var(--shadow-md);
}

.premium-card-content {
    flex: 2;
}

.premium-card h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.premium-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.btn-premium {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-primary-sm);
}

.btn-premium:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary-md);
    color: white;
}

.premium-card-icon {
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background-color: #4a4a4a;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: auto;
}

.premium-card-icon svg {
    width: 80px;
    height: 80px;
}

.solutions-section {
    margin-top: 3rem;
}

.solution-card-featured {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.solution-card-featured:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.solution-content-featured {
    flex: 1;
}

.solution-content-featured h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.solution-content-featured p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.solution-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.solution-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.solution-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(var(--brand-primary-rgb), 0.08);
    color: var(--brand-primary);
}

.coming-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f0f0f0;
    color: var(--color-text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.solution-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.solution-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.solution-link {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.solution-link:hover {
    color: var(--brand-primary-dark);
}

.solution-link i {
    margin-left: 0.5rem;
}

/* Home page responsive styles */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 1.5rem;
    }

    .premium-card {
        flex-direction: column;
        text-align: center;
    }

    .premium-card-icon {
        margin-left: 0;
        margin-top: 1.5rem;
    }

    .solution-card-featured {
        flex-direction: column;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

.payment-option-card h5 {
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
}

.payment-option-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ===== HEADER LOGO (Checkout) ===== */

.header-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 2.5rem;
}

.success-header {
    background: var(--color-success-alt) !important;
}

/* ===== VERIFICATION SUCCESS PAGE (vs- prefix) ===== */

.vs-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(56, 186, 150, 0.03);
}

.vs-card {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    animation: vsSlideUp 0.6s ease-out;
}

@keyframes vsSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.vs-icon-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.vs-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: var(--shadow-primary-md);
    animation: vsScaleIn 0.5s ease-out 0.2s both;
}

@keyframes vsScaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.vs-icon {
    font-size: 60px;
    color: white;
    font-weight: bold;
    animation: vsCheckmark 0.4s ease-out 0.5s both;
}

.vs-icon .bi {
    width: auto;
    height: auto;
    margin: 0;
    top: 0;
    position: static;
}

@keyframes vsCheckmark {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.vs-content {
    text-align: center;
    animation: vsFadeIn 0.6s ease-out 0.4s both;
}

@keyframes vsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vs-heading {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.vs-message {
    margin-bottom: 3rem;
}

.vs-lead-text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Info Cards */
.vs-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.vs-info-card {
    background: rgba(56, 186, 150, 0.05);
    border: 2px solid rgba(56, 186, 150, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: vsFadeInUp 0.6s ease-out both;
}

.vs-info-card:nth-child(1) { animation-delay: 0.5s; }
.vs-info-card:nth-child(2) { animation-delay: 0.6s; }
.vs-info-card:nth-child(3) { animation-delay: 0.7s; }

@keyframes vsFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.vs-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(56, 186, 150, 0.2);
}

.vs-info-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.vs-info-icon .bi {
    width: auto;
    height: auto;
    margin: 0;
    top: 0;
    position: static;
}

.vs-info-card h5 {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.vs-info-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Action Section */
.vs-action-section {
    margin-bottom: 2rem;
    animation: vsFadeIn 0.6s ease-out 0.8s both;
}

.vs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    padding: 1.1rem 3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    cursor: pointer;
    font-size: 1.1rem;
    text-decoration: none;
    background: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-primary-sm);
}

.vs-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.vs-btn:hover::before {
    width: 300px;
    height: 300px;
}

.vs-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-md);
    color: white;
}

.vs-btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary-sm);
}

.vs-btn-icon {
    font-size: 1.3rem;
    z-index: 1;
}

.vs-btn-icon .bi {
    width: auto;
    height: auto;
    margin: 0;
    top: 0;
    position: static;
}

.vs-btn-text {
    z-index: 1;
}

/* Footer Note */
.vs-footer-note {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(56, 186, 150, 0.1);
    animation: vsFadeIn 0.6s ease-out 0.9s both;
}

.vs-footer-note p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vs-container {
        padding: 1rem;
    }

    .vs-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .vs-icon-circle {
        width: 100px;
        height: 100px;
    }

    .vs-icon {
        font-size: 50px;
    }

    .vs-heading {
        font-size: 1.75rem;
    }

    .vs-lead-text {
        font-size: 1.1rem;
    }

    .vs-info-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vs-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }
}

/* ===== QUESTIONNAIRE RESPONSIVE STYLES ===== */

@media (max-width: 768px) {
    .section-header {
        padding: 1rem 1rem;
    }

    .section-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .section-progress-mini {
        width: 100%;
    }

    .section-body {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .section-icon {
        font-size: 0.8rem;
    }

    .section-status {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .form-actions-buttons {
        flex-direction: column;
        width: 100%;
    }

    .form-actions-buttons .btn {
        width: 100%;
    }

    .has-error {
        margin-left: -0.5rem;
        padding-left: 0.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .section-description {
        font-size: 0.85rem;
    }

    .form-actions {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .mini-progress-text {
        font-size: 0.75rem;
        min-width: 35px;
    }
}

/* ===== PRINT STYLES ===== */

/* Hide print-only content on screen */
.print-only {
    display: none !important;
}

/* Print media query */
@media print {
    /* Reset page margins for printing */
    @page {
        margin: 0.5in;
        size: letter;
    }

    /* Hide screen-only content when printing */
    .no-print {
        display: none !important;
    }

    /* Show print-only content when printing */
    .print-only {
        display: block !important;
    }

    /* Print receipt styles - compact version */
    .print-receipt {
        padding: 0.5rem;
        font-family: Arial, sans-serif;
        font-size: 14px;
        color: #000;
        background: white;
        max-width: 100%;
    }

    .receipt-header {
        text-align: center;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #000;
    }

    .company-logo h1 {
        font-size: 1.5rem;
        margin: 0 0 0.25rem 0;
        color: #38BA96;
    }

    .receipt-title h2 {
        font-size: 1.1rem;
        margin: 0;
        font-weight: 600;
        letter-spacing: 1px;
    }

    .receipt-details {
        margin-bottom: 0.5rem;
    }

    .receipt-row {
        display: flex;
        justify-content: space-between;
        padding: 0.15rem 0;
        font-size: 13px;
    }

    .receipt-label {
        font-weight: 600;
    }

    .receipt-value {
        text-align: right;
    }

    .receipt-divider {
        border-top: 1px dashed #ccc;
        margin: 0.5rem 0;
    }

    .receipt-section {
        margin-bottom: 0.5rem;
    }

    .receipt-section h3 {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #38BA96;
    }

    .receipt-section p {
        margin: 0.15rem 0;
        font-size: 13px;
    }

    .receipt-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 0.25rem;
        font-size: 13px;
    }

    .receipt-table th,
    .receipt-table td {
        padding: 0.35rem;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .receipt-table th.text-end,
    .receipt-table td.text-end {
        text-align: right !important;
    }

    .receipt-table th {
        font-weight: 600;
        background: #f5f5f5;
    }

    .receipt-table .total-paid td {
        border-top: 1px solid #000;
        font-weight: 700;
        padding-top: 0.35rem;
    }

    .receipt-table tfoot td.text-end {
        text-align: right !important;
    }

    .receipt-footer {
        text-align: center;
        margin-top: 0.75rem;
        padding-top: 0.5rem;
        border-top: 1px solid #ccc;
    }

    .receipt-footer p {
        margin: 0.15rem 0;
        font-size: 13px;
    }

    .receipt-footer .small {
        font-size: 11px;
        color: var(--color-text-muted);
    }
}
