/* VITA Page Styles */

/* CSS Variables */
:root {
    --vita-primary-blue: #005a8b;
    --vita-dark-blue: #002F52;
    --vita-light-blue: #CCEDFD;
    --vita-border-blue: #A3E1FF;
    --vita-gradient: linear-gradient(261deg, #00A3F5 3.49%, #004396 94.52%);
    --vita-text-dark: #4C4C4E;
    --vita-text-gray: #9ba2a3;
    --vita-text-heading: #333333;
    --vita-white: #FFFFFF;
    --vita-green: #238B00;
    --vita-font: 'Inter', sans-serif;
}

/* Base Styles */
.vita-page {
    font-family: var(--vita-font);
    color: var(--vita-text-dark);
    line-height: 1.5;
}

.vita-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Notice Banner */
.vita-notice-banner {
    width: 100%;
    padding: 40px 0 12px;
}

.vita-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 8px;
    background-color: #FFF8E6;
    border: 1px solid #F5E1A4;
}

.vita-notice-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    color: #946B00;
}

.vita-notice-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.vita-notice-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #946B00;
}

.vita-notice-message {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #6B4D00;
}

.vita-notice-message a {
    color: #6B4D00;
    text-decoration: underline;
}

/* Hero Section */
.vita-hero {
    padding: 64px 0 48px;
}

.vita-hero-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: center;
}

.vita-date-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--vita-light-blue);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.vita-date-tag span {
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--vita-primary-blue);
}

.vita-date-tag sup {
    font-size: 8px;
}

.vita-hero-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    color: var(--vita-dark-blue);
    line-height: 1.2;
    margin: 0 0 16px;
}

.vita-hero-title .gradient-text {
    background: var(--vita-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.6;
}

.vita-hero-description {
    font-size: 1.2rem;
    color: var(--vita-text-dark);
    line-height: 1.5;
    max-width: 50ch;
    margin-bottom: 16px;
}

.vita-cta-button {
    display: inline-block;
    background-color: var(--vita-dark-blue);
    color: var(--vita-white);
    font-family: var(--vita-font);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 12px;
}

.vita-cta-button:hover {
    background-color: var(--vita-primary-blue);
    color: var(--vita-white);
}

.vita-hero-note {
    font-size: 0.8rem;
    color: var(--vita-text-gray);
    margin: 0;
}

.vita-hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);    
}

/* Checkmarks Section */
.vita-checkmarks {
    padding: 0 0 64px;
}

.vita-checkmarks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vita-checkmark-item {
    text-align: center;
}

.vita-checkmark-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
}

.vita-checkmark-item h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--vita-primary-blue);
    margin: 0 0 8px;
}

.vita-checkmark-item p {
    font-size: 20px;
    color: var(--vita-text-dark);
    line-height: 1.3;
    margin: 0;
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}

/* How It Works Section */
.vita-how-it-works {
    background-color: var(--vita-light-blue);
    padding: 64px 0;
}

.vita-section-title {
    font-size: 3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--vita-primary-blue);
    text-align: center;
    margin: 0 0 32px;
}

.vita-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vita-step-card {
    background: var(--vita-white);
    border: 1px solid var(--vita-border-blue);
    border-radius: 12px;
    padding: 24px;
    min-height: 100%;
}

.vita-step-icon {
    max-height: 98px;
    width: auto;
    margin-bottom: 12px;
}

.vita-step-card h3 {
    font-size: 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--vita-text-heading);
    margin: 0 0 12px;
}

.vita-step-card p {
    font-size: 16px;
    color: var(--vita-text-dark);
    line-height: 1.4;
    margin: 0;
}

.vita-step-card a {
    color: var(--vita-primary-blue);
    text-decoration: underline;
}

/* When Is This Happening Section */
.vita-when {
    padding: 64px 0;
}

.vita-when-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: center;
}

.vita-when-content h2 {
    font-size: 3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--vita-dark-blue);
    margin: 0 0 16px;
}

.vita-when-content p {
    font-size: 1.2em;
    color: var(--vita-text-dark);
    line-height: 1.5;
    max-width: 50ch;
    margin: 0 0 12px;
}

.vita-when-note {
    font-size: 0.8rem;
    color: var(--vita-text-gray);
}

.vita-when-image img {
    width: 100%;
}

/* What To Bring Section */
.vita-what-to-bring {
    background-color: var(--vita-light-blue);
    padding: 64px 0;
}

.vita-bring-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vita-bring-card {
    background: var(--vita-white);
    border: 1px solid var(--vita-border-blue);
    border-radius: 12px;
    padding: 24px;
}

.vita-bring-icon {
    width: 64px;
    height: auto;
    margin-bottom: 12px;
}

.vita-bring-card h3 {
    font-size: 20px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--vita-text-heading);
    text-wrap: balance;
    line-height: 1.2;
}

.vita-bring-card p {
    font-size: 16px;
    color: var(--vita-text-dark);
    margin: 0;
    text-wrap: balance;
}

/* Super Saturday Section */
.vita-super-saturday {
    background: var(--vita-gradient);
    padding: 64px 0;
}

.vita-super-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 64px;
    margin-bottom: 48px;
}

.vita-super-sat-img {
    max-width: 400px;
}

.vita-super-info h2 {
    font-size: 3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--vita-white);
    margin: 0 0 8px;
}

.vita-super-info p {
    font-size: 1.2em;
    color: var(--vita-white);
    line-height: 1.5;
    max-width: 46ch;
    margin: 0;
}

.vita-super-info strong {
    font-weight: bold;
}

/* ACIC Notice */
.vita-acic-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--vita-light-blue);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 48px;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.vita-acic-notice svg {
    flex-shrink: 0;
}

.vita-acic-notice p {
    color: var(--vita-primary-blue);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.vita-acic-notice a {
    color: var(--vita-primary-blue);
    text-decoration: underline;
}

/* Event Cards Grid */
.vita-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(432px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.vita-event-card {
    background: var(--vita-white);
    border: 1px solid var(--vita-border-blue);
    border-radius: 25px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.vita-event-card.is-past-event {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(40%);
}

.vita-event-card.is-past-event .vita-event-button {
    display: none;
}

.vita-event-top {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 24px;
}

.vita-event-top > img {
    width: auto;
    height: auto;
    flex-shrink: 0;
}

/* Date Badge Styles */
.vita-date-badge {
    display: flex;
    flex-direction: column;
    width: 66px;
    height: 66px;
    border-radius: 12.5px;
    border: 1px solid #E1E1E1;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--vita-white);
}

.vita-date-badge-month {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    background: #CCEDFD;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #005A8B;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.vita-date-badge-day {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: var(--vita-white);
    font-size: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #333333;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.vita-event-location h4 {
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--vita-text-heading);
    margin: 0 0 6px;
    padding: 0;
}

.vita-event-location p {
    font-size: 14px;
    color: #757575;
    margin: 0;
    line-height: 1.4;
}

.vita-event-services {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 12px;
    margin-bottom: 24px;
}

.vita-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.vita-service-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.vita-service-item span {
    font-size: 16px;
    color: #5b5b5b;
    max-width: 10ch;
}

.vita-event-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-family: var(--vita-font);
    font-size: 16px;
    color: var(--vita-primary-blue);
    background: var(--vita-white);
    border: 1px solid var(--vita-primary-blue);
    border-radius: 12px;
    height: 40px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.vita-event-button:hover {
    background-color: var(--vita-light-blue);
}

/* Free Tax Prep Saturday Section */
.vita-free-tax-prep-saturday {
    background: var(--vita-white);
    padding: 64px 0;
}

.vita-free-tax-prep-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.vita-free-tax-prep-info {
    text-align: center;
}

.vita-free-tax-prep-logo {    
    max-height: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 8px;
}

.vita-free-tax-prep-info p {
    font-size: 1.2rem;
    color: var(--vita-text-dark);
    line-height: 1.5;
    max-width: 60ch;
    margin: 0 auto;
}

.vita-free-tax-prep-info strong {
    font-weight: bold;
}

/* Feb 8 Grid (used in Free Tax Prep Saturday section) */
.vita-feb8-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 908px;
    margin: 0 auto;
}

/* Sponsor Section */
.vita-sponsor {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
}

.vita-sponsor span {
    font-size: 20px;
    font-weight: 300;
    color: var(--vita-white);
}

.vita-sponsor-logo {
    max-width: 320px;
}

/* Branches Section */
.vita-branches {
    padding: 64px 0;    
    background: #f8f9fa;
}

.vita-branches-intro {
    text-align: center;
    font-size: 1.2em;
    color: var(--vita-text-dark);
    max-width: 60ch;
    margin: 0 auto 24px;
}

/* Modal Styles */
.vita-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.vita-modal:target,
.vita-modal.active {
    display: flex;
}

.vita-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.vita-modal-content {
    position: relative;
    background: var(--vita-white);
    border-radius: 12px;
    max-width: 1200px;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    z-index: 1;
    padding: 12px;
}

/* Two-Column Masonry Layout with CSS Columns */
.vita-popup-flex {
    column-count: 2;
    column-gap: 24px;
}

.vita-popup-item {
    background-color: #f5f5f5;
    width: 100%;
    border-radius: 12px;
    overflow: clip;
    break-inside: avoid; /* Prevent items from breaking across columns */
    margin-bottom: 24px; /* Add spacing between items in column layout */
}

/* Title/Header Card */
.vita-popup-title {
    background-color: lightgray;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 80px;
}

.vita-popup-title-with-bg {
    background-image: var(--bg-image);
}

.vita-popup-gradient {
    background: linear-gradient(180deg, rgba(0, 90, 139, 0) 0%, rgba(0, 90, 139, 0.8) 19.95%, #005a8b 100%);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
}

.vita-popup-gradient button {
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #005a8b;
    background: #fff;
    color: #005a8b;
    font-family: var(--vita-font);
    font-size: 16px;
    font-weight: 400;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.vita-popup-gradient button:hover {
    background: var(--vita-light-blue);
}

.vita-popup-date-header {
    display: flex;
    flex-direction: row;
    flex-grow: 9;
    align-items: center;
}

.vita-popup-date-header img {
    width: 48px;
}

.vita-popup-time-place {
    padding-left: 12px;
}

.vita-popup-time-place h4 {
    color: #fff;
    font-family: var(--vita-font);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    padding-bottom: 0;
}

.vita-popup-time-place h5 {
    color: #fff;
    font-family: var(--vita-font);
    font-size: 14px;
    font-weight: 300;
    margin: 0;
}

/* Map Card */
.vita-popup-map {
    background-size: cover;
    background-position: center;
    border: 2px solid #cdcdcd;
    border-radius: 12px;
    position: relative;
    min-height: 200px;
    overflow: clip;
}

.vita-popup-map iframe {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;    
}

/* Map Marker Styles (shared with single-branch) */
.branch-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #008BD1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.marker-inner-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.marker-pointer {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #008BD1;
}

.vita-popup-gradient-inverted {
    border-radius: 0px 0px 12px 12px;
    background: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
}

.vita-popup-gradient-inverted button {
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #005a8b;
    background: #fff;
    color: #005a8b;
    font-family: var(--vita-font);
    font-size: 16px;
    font-weight: 400;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.vita-popup-gradient-inverted button:hover {
    background: var(--vita-light-blue);
}

.vita-popup-dark .vita-popup-time-place {
    padding-left: 0;
}

.vita-popup-dark .vita-popup-time-place h4 {
    color: #333;
}

.vita-popup-dark .vita-popup-time-place h5 {
    color: #333;
}

/* Service Card Styles */
.vita-popup-services-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: #ccedfd;
    border-radius: 8px 8px 0px 0px;
    height: 40px;
}

.vita-popup-services-header svg {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.vita-popup-services-header h4 {
    color: #005a8b;
    font-family: var(--vita-font);
    font-weight: 600;
    margin: 0;
    padding: 0;
}

/* Service Header Color Variants */
.vita-sh-light-green {
    background: #ccfdd3;
}

.vita-sh-light-green h4 {
    color: #238B00;
}

.vita-sh-light-yellow {
    background: #fdf3cc;
}

.vita-sh-light-yellow h4 {
    color: #8B5800;
}

.vita-sh-light-red {
    background: #fdcccd;
}

.vita-sh-light-red h4 {
    color: #8B0002;
}

.vita-sh-light-blue {
    background: #ccedfd;
}

.vita-sh-light-blue h4 {
    color: #005a8b;
}

/* Service Body */
.vita-popup-service-body {
    display: flex;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    align-self: stretch;
    border-radius: 0px 0px 12px 12px;
    border: 2px solid #ccedfd;
    background: #fff;
}

.vita-sb-light-green {
    border-color: #ccfdd3;
}

.vita-sb-light-yellow {
    border-color: #fdf3cc;
}

.vita-sb-light-red {
    border-color: #fdcccd;
}

.vita-sb-light-blue {
    border-color: #ccedfd;
}

.vita-popup-service-paragraph {
    color: #5b5b5b;
    font-family: var(--vita-font);
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    padding: 0;
    margin: 0;
    text-align: center;
}

/* Services Section with Tags */
.vita-popup-services-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Service Divider */
.vita-popup-service-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: stretch;
}

.vita-popup-service-divider h5 {
    color: #9a9a9a;
    font-family: var(--vita-font);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    max-width: 70%;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.vita-popup-divider-line {
    height: 1px;
    flex: 1 0 0;
    background: #e9e9e9;
}

/* Tag Grid */
.vita-popup-tag-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    gap: 12px;
    align-self: stretch;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vita-popup-tag {
    display: flex;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    border: 1px solid #e7e7e7;
    background: #efefef;
    color: #5f5f5f;
    font-family: var(--vita-font);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

/* ACIC Banner */
.vita-popup-acic-banner {
    display: flex;
    padding: 12px;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    border-radius: 12px;
    background: #ccedfd;
}

.vita-popup-acic-banner svg {
    margin-top: 2px;
    width: 24px;
    height: 22px;
    flex-shrink: 0;
}

.vita-popup-acic-banner h6 {
    color: #005a8b;
    font-family: var(--vita-font);
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0;
    flex: 1 0 0;
}

.vita-popup-acic-banner a {
    color: #005a8b;
    font-family: var(--vita-font);
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
}

/* Sponsor Grid */
.vita-popup-sponsor-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.vita-popup-sponsor-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vita-popup-sponsor-img {
    max-width: 200px;
    height: auto;
}

/* Entergy Sponsor Section */
.vita-popup-entergy-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
}

/* Close Button */
.vita-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    background: var(--vita-dark-blue);
    color: var(--vita-white);
    font-family: var(--vita-font);
    font-size: 16px;
    font-weight: 400;
    height: 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.vita-modal-close:hover {
    background: var(--vita-primary-blue);
}

/* Responsive Styles */
@media (max-width: 980px) {
    .vita-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .vita-hero-title {
        font-size: 2.5em;
    }

    .vita-hero-image {
        order: 1;
    }

    .vita-checkmarks-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .vita-steps-grid {
        grid-template-columns: 1fr;
    }

    .vita-when-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .vita-bring-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vita-super-header {
        flex-direction: column;
        text-align: center;
    }

    .vita-super-info h2,
    .vita-super-info p {
        text-align: center;
    }

    .vita-free-tax-prep-header {
        flex-direction: column;
        text-align: center;
    }

    .vita-free-tax-prep-info h2,
    .vita-free-tax-prep-info p {
        text-align: center;
    }

    .vita-acic-notice {
        max-width: 100%;
    }

    .vita-events-grid {
        grid-template-columns: 1fr;
    }

    .vita-feb8-grid {
        grid-template-columns: 1fr;
    }

    .vita-sponsor {
        flex-direction: column;
    }

    .vita-popup-flex {
        column-count: 1;
    }

    .vita-popup-gradient,
    .vita-popup-gradient-inverted {
        flex-direction: column;
        align-items: stretch;
    }

    .vita-modal {
        padding: 0;
        align-items: stretch;
    }

    .vita-modal-content {
        max-height: none;
        border-radius: 0;
        padding-bottom: 72px;
    }

    .vita-modal-close {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
        z-index: 100000;
    }
}

@media (max-width: 600px) {
    .vita-notice-content {
        padding: 12px 16px;
    }

    .vita-notice-title {
        font-size: 14px;
    }

    .vita-notice-message {
        font-size: 14px;
    }

    .vita-container {
        padding: 0 16px;
    }

    .vita-hero-title {
        font-size: 2em;
    }

    .vita-section-title {
        font-size: 28px;
    }

    .vita-hero-description,
    .vita-when-content p,
    .vita-super-info p {
        font-size: 16px;
    }

    .vita-checkmark-item h3 {
        font-size: 20px;
    }

    .vita-checkmark-item p {
        font-size: 16px;
    }

    .vita-step-card h3 {
        font-size: 20px;
    }

    .vita-bring-grid {
        grid-template-columns: 1fr;
    }

    .vita-bring-card h3 {
        font-size: 18px;
    }

    .vita-super-sat-img {
        max-width: 280px;
    }

    .vita-event-services {
        flex-wrap: wrap;
    }

    .vita-service-item span {
        font-size: 12px;
    }

    .vita-modal-content {
        padding: 8px;
        padding-bottom: 72px;
    }

    .vita-popup-tag {
        font-size: 14px;
    }

    .vita-popup-service-divider h5 {
        font-size: 12px;
    }

    .vita-popup-sponsor-img {
        max-width: 150px;
    }

    .vita-modal-close {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
}

/* Admin bar support */
.admin-bar .vita-modal {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .vita-modal {
        top: 46px;
    }
}

/* Smooth scroll behavior - conditionally apply only to anchor links to avoid performance issues */
@media (prefers-reduced-motion: no-preference) {
    html:has(a[href^="#"]:active) {
        scroll-behavior: smooth;
    }
}

/* Hide modal when hash is not present */
.vita-modal:not(:target):not(.active) {
    pointer-events: none;
}
