/* Custom Styles for Beauty & Beyond Suites */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Option 2: Display font for premium hero text (remove if reverting) */
.font-display {
    font-family: 'Playfair Display', serif;
}

.hero-gradient {
    background: linear-gradient(135deg, #5B3EA6 0%, #7B5FD7 100%);
}

/* Subtle image/gradient overlay for hero for readability */
.hero-overlay { position: relative; }
.hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 10% 10%, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 40%),
                linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.12) 100%);
    pointer-events: none;
}

.shadow-hero-badge { box-shadow: 0 10px 30px rgba(255,255,255,0.15); }

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(91, 62, 166, 0.18), 0 8px 20px rgba(91, 62, 166, 0.1);
}

.gold-accent {
    color: #BDA76A;
}

.btn-primary {
    background-color: #5B3EA6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background-color: #4A3287;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(91, 62, 166, 0.25), 0 4px 12px rgba(91, 62, 166, 0.15);
}

.btn-accent {
    background-color: #BDA76A;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-accent:hover {
    background-color: #A8935C;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(189, 167, 106, 0.25), 0 4px 12px rgba(189, 167, 106, 0.15);
}

/* Smooth Scroll Animations - Reduced intensity */
.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    will-change: opacity;
}

.reveal.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in from bottom - reduced movement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide in from left - reduced movement */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right - reduced movement */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale in */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes - faster, more subtle */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.5s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.4s ease-out forwards;
}

/* Stagger animation delays */
.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }
.animate-delay-500 { animation-delay: 500ms; }

/* Reveal animation on scroll - enhanced version above */

/* Hero video enhancements */
.shadow-hero-video { box-shadow: 0 20px 60px rgba(91, 62, 166, 0.3), 0 8px 20px rgba(91, 62, 166, 0.15); }
.video-card:hover { transform: rotate(-0.5deg) scale(1.02); transition: transform 0.3s ease; }

/* (reverted) removed video prominence helpers */

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.step-connector {
    background: linear-gradient(90deg, #5B3EA6 0%, #BDA76A 100%);
    height: 2px;
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    z-index: -1;
}

@media (max-width: 768px) {
    .step-connector {
        display: none;
    }
}

.testimonial-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9F7FF 100%);
}

.footer-gradient {
    background: linear-gradient(135deg, #4A3287 0%, #5B3EA6 100%);
}

/* Section background utilities - reserved for future use */

/* Trust bar with photo backdrop */
.trustbar-photo { 
    background: linear-gradient(0deg, rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
                url('https://images.unsplash.com/photo-1504813184591-01572f98c85f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center/cover no-repeat; 
}
.badge-photo { width: 48px; height: 48px; border-radius: 999px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85), 0 6px 20px rgba(91,62,166,.15); }

/* Animation for intersection observer */
.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Logo */
.brand { 
    display: flex; 
    align-items: center; 
    gap: .5rem; 
    text-decoration: none; 
}

.brand__img { 
    height: 64px; 
    width: auto; 
    display: block; 
}

@media (max-width: 768px) {
    .brand__img { 
        height: 40px; 
    }
}

/* Mobile menu styles */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 8px 30px rgba(91, 62, 166, 0.2), 0 4px 10px rgba(91, 62, 166, 0.1);
    border-radius: 0 0 20px 20px;
    padding: 1.5rem;
    z-index: 1000;
    border-top: 1px solid rgba(91, 62, 166, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu.show {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-menu a:hover {
    background-color: #F6F3FF;
    color: #5B3EA6;
}

.mobile-menu-button {
    transition: all 0.3s ease;
}

.mobile-menu-button:hover {
    transform: scale(1.1);
}

/* Ensure nav container is relative for mobile menu positioning */
nav {
    position: relative;
}

/* Footer logo */
.footer-brand__img {
    height: 40px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .footer-brand__img {
        height: 32px;
    }
}

/* AHCA Official Badge */
.ahca-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1e3a8a; /* Dark blue */
    border: 3px solid white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.ahca-badge::before {
    content: "AGENCY FOR HEALTH CARE ADMINISTRATION";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5px;
    font-weight: 600;
    color: white;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1;
}

.ahca-badge::after {
    content: "STATE OF FLORIDA";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6px;
    font-weight: 600;
    color: white;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1;
}

.ahca-heartbeat {
    width: 24px;
    height: 12px;
    position: relative;
    margin-top: 4px;
}

.ahca-heartbeat::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: #dc2626; /* Red */
    border-radius: 1px;
    top: 50%;
    transform: translateY(-50%);
}

.ahca-heartbeat::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 8px;
    background: #dc2626; /* Red */
    border-radius: 1px;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 
        6px -4px 0 0 #dc2626,
        12px 0 0 0 #dc2626;
}

@media (max-width: 768px) {
    .ahca-badge {
        width: 50px;
        height: 50px;
    }
    
    .ahca-badge::before {
        font-size: 4px;
        top: 6px;
    }
    
    .ahca-badge::after {
        font-size: 5px;
        bottom: 6px;
    }
    
    .ahca-heartbeat {
        width: 20px;
        height: 10px;
    }
}

/* Video Modal */
.video-modal { 
    position: fixed; 
    inset: 0; 
    display: none; 
    z-index: 9999;
}

.video-modal.is-open { 
    display: block; 
}

.video-modal__overlay { 
    position: absolute; 
    inset: 0; 
    background: rgba(0, 0, 0, .55); 
}

.video-modal__dialog {
    position: relative; 
    max-width: 960px; 
    margin: 6vh auto; 
    padding: 0 1rem; 
    z-index: 10000;
    animation: pop .24s ease-out;
}

@keyframes pop { 
    from { 
        transform: scale(.98); 
        opacity: .6 
    } 
    to { 
        transform: scale(1); 
        opacity: 1 
    } 
}

.video-modal__video { 
    width: 100%; 
    border-radius: 14px; 
    background: #000; 
}

.video-modal__close {
    position: absolute; 
    top: -36px; 
    right: 6px; 
    width: 32px; 
    height: 32px;
    border: 0; 
    border-radius: 999px; 
    background: #fff; 
    font-size: 20px; 
    cursor: pointer;
}

/* Decorative Orbs */
.decor-orb { position: absolute; width: 320px; height: 320px; border-radius: 999px; filter: blur(60px); opacity: 0.25; pointer-events: none; }
.decor-orb--left { left: -120px; top: -40px; background: radial-gradient(circle at 30% 30%, #BDA76A, transparent 60%); }
.decor-orb--right { right: -120px; bottom: -60px; background: radial-gradient(circle at 70% 70%, #7B5FD7, transparent 60%); }

/* Service Cards */
.gradient-card { background: linear-gradient(180deg, #FFFFFF 0%, #F7F3FF 60%, rgba(91,62,166,0.06) 100%); border: 1px solid rgba(91,62,166,0.12); border-radius: 20px; }
.service-card { padding: 1.5rem; border-radius: 20px; box-shadow: 0 10px 35px rgba(91,62,166,0.14), 0 4px 12px rgba(91,62,166,0.08); transition: border-color .3s cubic-bezier(0.4, 0, 0.2, 1), transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s cubic-bezier(0.4, 0, 0.2, 1); }
.service-card:hover { border-color: #5B3EA6; box-shadow: 0 20px 50px rgba(91,62,166,0.2), 0 8px 20px rgba(91,62,166,0.12); }
.service-card__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(91,62,166,0.12); color: #5B3EA6; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.service-card__title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.125rem; color: #4A3287; margin-bottom: 8px; }
.service-card__desc { color: #4B5563; margin-bottom: 12px; }
.service-card__link { color: #5B3EA6; font-weight: 600; text-decoration: none; }
.service-card__link:hover { text-decoration: underline; }

/* Stats Section */
.stats-gradient { background: linear-gradient(135deg, #4A3287 0%, #2E1F57 100%); }
.stat-card { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 18px; padding: 1.25rem; backdrop-filter: blur(8px); text-align: center; }
.stat-card__num { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 2.25rem; line-height: 1.1; }
.stat-card__label { opacity: 0.9; margin-top: 6px; }

/* Testimonials */
.testimonials-gradient { background: linear-gradient(180deg, #F6F3FF 0%, #FFFFFF 100%); }

/* Testimonial Card - Enhanced Styling */
.testimonial { 
    background: #fff; 
    border-radius: 20px; 
    padding: 2rem; 
    box-shadow: 0 12px 40px rgba(91,62,166,0.15), 0 4px 16px rgba(91,62,166,0.1); 
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s cubic-bezier(0.4, 0, 0.2, 1); 
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures the name/photo is pinned to the bottom */
    align-items: center;
    min-height: 280px;
}

.testimonial:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 20px 50px rgba(91,62,166,0.2), 0 8px 20px rgba(91,62,166,0.15); 
}

.testimonial__stars { 
    color: #BDA76A; 
    margin-bottom: 1rem; 
    font-size: 1.1rem;
}

.testimonial__quote { 
    color: #374151; 
    margin-bottom: 1rem; 
    font-size: 1.05rem;
    line-height: 1.7;
    flex-grow: 1; 
    /* NEW: Add max height properties */
    max-height: 180px; /* Adjust this value (e.g., 6-7 lines of text) */
    overflow-y: auto; /* Enable scrolling within the quote block */
    scrollbar-width: thin; /* Firefox scrollbar style */
    padding-right: 5px; /* Space for the scrollbar */
    /* Add a subtle scroll indicator style if needed, though scrollbar is the main fix */
}

/* Webkit scrollbar styling for Chrome/Safari */
.testimonial__quote::-webkit-scrollbar {
    width: 6px;
}

.testimonial__quote::-webkit-scrollbar-track {
    background: rgba(91, 62, 166, 0.1);
    border-radius: 3px;
}

.testimonial__quote::-webkit-scrollbar-thumb {
    background: rgba(91, 62, 166, 0.3);
    border-radius: 3px;
}

.testimonial__quote::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 62, 166, 0.5);
}

.testimonial__person { 
    display: flex; 
    align-items: center; 
    gap: .75rem; 
    justify-content: center;
}

.testimonial .avatar { display: none; }

.avatar-photo { 
    width: 48px; 
    height: 48px; 
    border-radius: 999px; 
    object-fit: cover; 
    box-shadow: 0 4px 14px rgba(91,62,166,.22); 
}

.testimonial .name { 
    font-weight: 700; 
    color: #4A3287; 
    font-size: 1rem;
}

.testimonial .meta { 
    color: #9CA3AF; 
    font-size: .875rem; 
    font-weight: 400;
}

/* Testimonials carousel - Refactored Layout */
.testimonial-carousel { 
    position: relative; 
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-carousel__wrapper {
    margin-bottom: 2rem;
}

.testimonial-track { 
    display: grid; 
    grid-auto-flow: column; 
    grid-auto-columns: minmax(280px, 1fr); 
    gap: 1.5rem; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; /* Momentum scrolling for iOS */
    scroll-behavior: smooth;
    padding: 1rem; 
    scrollbar-width: none; 
}

.testimonial-track::-webkit-scrollbar { 
    display: none; 
}

.testimonial { 
    scroll-snap-align: center; 
    min-width: 280px; 
}

/* Navigation Controls - Outside Card */
.testimonial-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.carousel-btn { 
    width: 48px; 
    height: 48px; 
    border-radius: 999px; 
    background: rgba(91,62,166,0.95); 
    color: #fff; 
    border: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 8px 24px rgba(91,62,166,0.3); 
    transition: transform .15s ease, background .2s ease; 
    flex-shrink: 0;
}

.carousel-btn:hover { 
    background: #4A3287; 
    transform: scale(1.1); 
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn i {
    font-size: 1.1rem;
}

/* Pagination Dots */
.carousel-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(91,62,166,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(91,62,166,0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #5B3EA6;
    width: 12px;
    height: 12px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .testimonial {
        padding: 1.5rem;
        min-height: 260px;
    }
    
    .testimonial__quote {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .testimonial-track {
        grid-auto-columns: minmax(280px, 1fr);
        gap: 1rem;
    }
    
    .testimonial {
        min-width: 280px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-carousel__controls {
        gap: 1rem;
    }
}

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(91,62,166,0.12); }
.faq-q { width: 100%; background: transparent; border: 0; display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; font-weight: 600; color: #4A3287; cursor: pointer; }
.faq-q i { color: #BDA76A; transition: transform .2s ease; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { color: #4B5563; max-height: 0; overflow: hidden; transition: max-height .25s ease; padding-right: .5rem; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: .75rem; }

/* Header glass effect */
header.header--glass { 
    background: rgba(255,255,255,0.85) !important; 
    backdrop-filter: saturate(180%) blur(12px); 
    box-shadow: 0 6px 24px rgba(91,62,166,0.15), 0 2px 8px rgba(91,62,166,0.08); 
}

/* Image cards (Why Us) */
.image-card { position: relative; display: block; height: 420px; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 40px rgba(91,62,166,.16), 0 4px 12px rgba(91,62,166,.08); transform: translateZ(0); }
.image-card__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1); }
.image-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); transition: background .3s ease; }
.image-card__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; color: #fff; }
.image-card__icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(189,167,106,.85); display: flex; align-items: center; justify-content: center; margin-bottom: .5rem; }
.image-card__title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem; margin-bottom: .25rem; }
.image-card__desc { opacity: .9; margin-bottom: .5rem; }
.image-card__link { color: #fff; font-weight: 600; }
.image-card:hover .image-card__img { transform: scale(1.06); }
.image-card:hover .image-card__overlay { background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%);
}

/* Stats split */
.stats-split-left { background: linear-gradient(135deg, #4A3287 0%, #2E1F57 100%); }
.stats-split-right { min-height: 420px; background-size: cover; background-position: center; }
.stat-split-item { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 16px; padding: 1rem; backdrop-filter: blur(8px); text-align: center; }
.stat-split-num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2.25rem; color: #fff; }
.stat-split-label { color: rgba(255,255,255,.9); }

/* CTA photo background */
.cta-photo { 
    background: linear-gradient(0deg, rgba(91,62,166,.75), rgba(91,62,166,.75)),
                url('https://images.unsplash.com/photo-1598928506311-c55ded91a20c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=75') center/cover no-repeat;
}

/* Premium Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #BDA76A !important;
    box-shadow: 0 0 0 3px rgba(189, 167, 106, 0.1);
}

/* ============================== */
/* Premium Glassmorphism PDF Modal */
/* ============================== */

.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  backdrop-filter: blur(12px) brightness(0.6);
  background: rgba(0, 0, 0, 0.35);
  animation: fadeIn 0.35s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pdf-modal-content {
  position: relative;
  width: 92%;
  max-width: 900px;
  height: 88vh;
  margin: 40px auto;
  background: rgba(255,255,255,0.17);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 45px rgba(0,0,0,0.25);
  animation: slideUp 0.35s ease-out forwards;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 35px;
  font-weight: bold;
  color: white;
  background: rgba(0,0,0,0.4);
  border: none;
  cursor: pointer;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: 0.2s ease;
}

.pdf-close:hover {
  background: rgba(0,0,0,0.6);
  transform: scale(1.1);
}

/* Mobile adjustments */
/* Performance: Content visibility for off-screen sections */
section:not(#home) {
    content-visibility: auto;
    contain-intrinsic-size: 1000px; /* Approximates section height to prevent scrollbar jumping */
}

@media (max-width: 768px) {
  .pdf-modal-content {
    width: 96%;
    height: 92vh;
    margin-top: 20px;
  }
  
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: opacity 0.3s ease-out !important; /* Fast transition for mobile */
  }
}

/* ========================================= */
/* PREMIUM DROPDOWN STYLING (Custom Arrow)   */
/* ========================================= */

select {
    /* 1. Remove default browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* 2. Add Custom Brand Arrow (Purple #5B3EA6) */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%235B3EA6%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 0.8rem auto;
    
    /* 3. Ensure spacing */
    padding-right: 2.5rem !important; /* Make room for the new arrow */
    background-color: #ffffff;
    cursor: pointer;
}

/* Fix for IE/Edge to hide their native arrow */
select::-ms-expand {
    display: none;
}

/* Designer credit: Techkingsley — remove if client requests */
/* === Site credit (Techkingsley) === */
.site-credit {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.55;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 4px;
  pointer-events: auto;
  user-select: none;
  color: inherit; /* inherits appropriate color from footer */
}

/* Slightly lighter color on dark backgrounds */
footer .site-credit {
  opacity: 0.7;
}

/* Accessibility: ensure minimum contrast for small text */
@media (prefers-contrast: high) {
  .site-credit { opacity: 0.95; }
}

/* ========================================= */
/* MOBILE FORM NORMALIZATION (iOS FIXES)     */
/* ========================================= */

/* 1. Force inputs to look like flat white boxes (removes iOS gray bubble) */
input[type="date"],
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    -webkit-appearance: none;
    appearance: none;
    background-color: #ffffff;
}

/* 2. Specific fix for Date inputs */
input[type="date"] {
    min-height: 58px;
    display: block;
    padding-right: 1rem;
}

/* 3. Custom Purple Checkboxes */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    display: grid;
    place-content: center;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked {
    background-color: #5B3EA6;
    border-color: #5B3EA6;
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

