/* --- 1. CORE SETUP & PALETTE --- */
:root {
    --primary-color: #e2e8dc;
    --primary-hover: #88997c;
    --light-color: #f5fcf2;
    --dark-color: #525b51;
    --accent-color: #657364;

    /* Global Font Family */
    --font-body: 'Typold-family', sans-serif;
    --font-heading: 'Typold-family', sans-serif;

    --transition-speed: 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.07);
    --shadow-strong: 0 15px 45px rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

/* --- 2. LAYOUT & SCROLL BEHAVIOR --- */
body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* --- 2.5. CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-hover);
}

#main-wrapper {
    width: 100vw;
    height: 100vh;
    transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

.panel {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--light-color);
    overflow: hidden;
}

/* --- 3. PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

#preloader span {
    font-family: var(--font-body);
    color: var(--light-color);
    font-size: 2rem;
    font-weight: 300;
    opacity: 0;
    animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* --- 4. GLOBAL EFFECTS --- */
.panel:not(#home)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 500px at var(--mouseX, 50%) var(--mouseY, 50%), rgba(215, 206, 194, 0.1), transparent 80%);
    z-index: 0;
    transition: background 0.2s linear;
}

/* --- 5. PANEL BACKGROUNDS --- */
@keyframes subtleGradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

#home::after {
    background-image: url('https://i.ibb.co/KHzg55T/99714ab4-7659-4d9a-aa21-fd7950a1ba67-right.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#symptoms::after,
#team::after,
#contact::after {
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f5fcf2' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(290deg, #566b53, #6d816b, #566b53, #516850, #90a58d);
    background-size: auto, 500% 500%;
    animation: subtleGradientFlow 60s ease-in-out infinite;
}

#specialties::after,
#testimonials-faq::after {
    background: linear-gradient(290deg, #f0f5ec, #ffffff, #f0f5ec, var(--primary-color), var(--light-color));
    background-size: 500% 500%;
    animation: subtleGradientFlow 60s ease-in-out infinite;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#home::before {
    background: linear-gradient(to right, rgba(36, 43, 35, 0.7) 15%, rgba(36, 43, 35, 0.3) 45%, transparent 70%);
}

#symptoms::before,
#team::before,
#contact::before {
    background: radial-gradient(circle at center, rgba(40, 45, 40, 0.5) 0%, transparent 75%);
}

#specialties::before,
#testimonials-faq::before {
    background: radial-gradient(circle at center, rgba(200, 200, 200, 0.1) 0%, transparent 75%);
}

/* --- 5.5. WHITE PANEL THEME OVERRIDES --- */
#specialties .panel-title,
#testimonials-faq .panel-title {
    color: var(--dark-color);
}

#specialties .specialty-item .specialty-title {
    color: var(--light-color);
    text-shadow: none;
}

#specialties .specialty-item::after {
    background: linear-gradient(to top, rgba(82, 91, 81, 0.2) 10%, transparent 60%);
}

#specialties .specialty-detail-box {
    color: var(--dark-color);
    background: linear-gradient(135deg, rgba(82, 91, 81, 0.1), rgba(82, 91, 81, 0.05));
    border-color: rgba(82, 91, 81, 0.18);
}

#specialties .specialty-detail-box h3 {
    color: var(--accent-color);
}

#specialties .specialty-mobile-content {
    color: var(--dark-color);
}

#testimonials-faq .content {
    color: var(--dark-color);
    background: linear-gradient(135deg, rgba(82, 91, 81, 0.08), rgba(82, 91, 81, 0%));
    border-color: rgba(82, 91, 81, 0.15);
}

#testimonials-faq .section-title {
    color: var(--accent-color);
}

#testimonials-faq .testimonial-author span {
    color: var(--dark-color);
}

#testimonials-faq .testimonial-author.active img {
    border-color: var(--accent-color);
}

#testimonials-faq .faq-item {
    border-bottom-color: rgba(82, 91, 81, 0.15);
}

#testimonials-faq .faq-item summary::after {
    color: var(--accent-color);
}

/* --- 6. NAVIGATION & CTA & LANG TOGGLE --- */
#dot-pagination {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
}

#dot-pagination ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(244, 238, 228, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

#dot-pagination li {
    position: relative;
}

.dot-nav-btn {
    width: 12px;
    height: 12px;
    background: rgba(244, 238, 228, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot-nav-btn.active,
.dot-nav-btn:hover {
    background: var(--light-color);
    transform: scale(1.2);
}

.dot-nav-preview {
    position: absolute;
    right: 100%;
    top: 50%;
    margin-right: 1rem;
    width: 180px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: var(--shadow-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(10px, -50%);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#dot-pagination li:hover .dot-nav-preview {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

.dot-nav-preview span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: var(--light-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.2rem 0 0.5rem 0;
}

.btn-fixed-cta {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 199;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInCTA 1s ease 2s forwards;
}

@keyframes fadeInCTA {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-toggle-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 300;
}

.lang-toggle {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(244, 238, 228, 0.3);
    border-radius: 50px;
    padding: 5px;
    display: flex;
    gap: 5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-subtle);
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.lang-btn.active {
    background: var(--light-color);
    color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-toggle.dark-mode-toggle {
    background: rgba(82, 91, 81, 0.1);
    border-color: rgba(82, 91, 81, 0.2);
}

.lang-toggle.dark-mode-toggle .lang-btn {
    color: rgba(82, 91, 81, 0.7);
}

.lang-toggle.dark-mode-toggle .lang-btn.active {
    background: var(--dark-color);
    color: var(--light-color);
}

/* --- 7. CONTENT STYLES --- */
.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
}

.content {
    max-width: 1100px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    text-align: center;
    color: var(--light-color);
    background: linear-gradient(135deg, rgb(232 221 199 / 13%), rgb(232 221 199 / 0%));
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(244, 238, 228, 0.18);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.4s ease-out;
    transform-style: preserve-3d;
}

.panel-title {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 101;
    color: var(--light-color);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.panel.active .panel-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    background-color: var(--accent-color);
    color: var(--light-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.btn:hover,
.btn:focus-visible {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    outline: none;
}

/* --- 8. ANIMATIONS --- */
@keyframes popUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floaty {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

.animates-children>* {
    opacity: 0;
    will-change: transform, opacity;
}

.panel.active .animates-children {
    animation: floaty 6s ease-in-out 1.7s infinite;
}

.panel.is-leaving .animates-children>* {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.panel.active .animates-children>* {
    animation: popUp 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.panel.active .animates-children>*:nth-child(1) {
    animation-delay: 0.6s;
}

.panel.active .animates-children>*:nth-child(2) {
    animation-delay: 0.7s;
}

.panel.active .animates-children>*:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- 9. PANEL SPECIFICS --- */
#home {
    justify-content: flex-start;
    padding-left: 7vw;
}

#home .home-content {
    text-align: left;
    transition: transform 0.4s ease-out;
}

#home .home-title {
    font-family: 'Typold-family';
    font-size: 6rem;
    color: #e0e1df;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 5px 25px rgba(0, 0, 0, 0.5);
}

#home .home-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0 0 2.5rem 0;
    color: var(--light-color);
    text-shadow: 0 3px 15px rgb(0, 0, 0);
    max-width: 600px;
}

#symptoms .content {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* SYMPTOMS */
.symptoms-layout {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.constellation-container {
    position: relative;
    width: 100%;
    height: 450px;
    max-height: 50vh;
}

.symptom-orb {
    position: absolute;
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 20px -5px var(--primary-hover);
    animation: gentle-float 25s infinite alternate ease-in-out;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--light-color);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, box-shadow;
    z-index: 10;
}

.symptom-orb:hover {
    transform: scale(1.1) !important;
    background-color: var(--primary-hover);
}

.symptom-orb.active {
    transform: scale(1.05) !important;
    background-color: var(--primary-hover);
    box-shadow: 0 0 35px 0px var(--primary-hover);
}

@keyframes gentle-float {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(8px, 12px);
    }

    50% {
        transform: translate(-8px, -8px);
    }

    75% {
        transform: translate(12px, -4px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Orb positions */
.symptom-orb[data-symptom="ansiedade"] {
    width: 130px;
    height: 130px;
    font-size: 1rem;
    top: 5%;
    left: 15%;
    animation-duration: 24s;
}

.symptom-orb[data-symptom="depressao"] {
    width: 120px;
    height: 120px;
    font-size: 0.9rem;
    top: 30%;
    left: 65%;
    animation-duration: 28s;
}

.symptom-orb[data-symptom="pertubaçao_bipolar"] {
    width: 110px;
    height: 110px;
    font-size: 0.8rem;
    top: 65%;
    left: 5%;
    animation-duration: 22s;
}

.symptom-orb[data-symptom="perturbaçoes_personalidade"] {
    width: 105px;
    height: 105px;
    font-size: 0.7rem;
    top: 70%;
    left: 60%;
    animation-duration: 26s;
}

.symptom-orb[data-symptom="trauma"] {
    width: 100px;
    height: 100px;
    font-size: 0.85rem;
    top: 5%;
    left: 75%;
    animation-duration: 30s;
}

.symptom-orb[data-symptom="fobias"] {
    width: 85px;
    height: 85px;
    font-size: 0.8rem;
    top: 45%;
    left: 35%;
    animation-duration: 25s;
}

.symptom-orb[data-symptom="psicoses"] {
    width: 90px;
    height: 90px;
    font-size: 0.85rem;
    top: 85%;
    left: 30%;
    animation-duration: 27s;
}

.symptom-orb[data-symptom="neurodivergencia"] {
    width: 115px;
    height: 115px;
    font-size: 0.8rem;
    top: 35%;
    left: 0%;
    animation-duration: 29s;
}

.symptom-orb[data-symptom="perturbaçoes_obsessivas"] {
    width: 100px;
    height: 100px;
    font-size: 0.7rem;
    top: 5%;
    left: 45%;
    animation-duration: 31s;
}

.symptom-orb[data-symptom="perturbaçoes_somaticas"] {
    width: 95px;
    height: 95px;
    font-size: 0.7rem;
    top: 55%;
    left: 85%;
    animation-duration: 23s;
}

.symptom-display-panel {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    min-height: 350px;
    max-height: 50vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.symptom-display-panel.is-changing .symptom-info-card,
.symptom-display-panel.is-changing .symptom-services-card {
    opacity: 0;
    transform: translateY(10px);
}

.symptom-info-card {
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

#symptom-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.symptom-services-card {
    margin-top: auto;
    transition: all 0.4s ease;
}

.symptom-services-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.8;
}

#symptom-recommended-services,
.symptom-recommended-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--accent-color);
    color: var(--light-color);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.service-tag:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.symptoms-accordion {
    display: none;
}

/* SPECIALTIES */
#specialties .specialties-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1.5rem;
}

.specialties-container {
    display: flex;
    width: 90%;
    height: 75vh;
    gap: 1rem;
    perspective: 1500px;
    transition: height 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.specialties-layout.has-selection .specialties-container {
    height: 50vh;
}

.specialty-item {
    position: relative;
    flex-grow: 1;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.2);
    transition: flex-grow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s ease, box-shadow 0.4s ease, opacity 0.5s ease, filter 0.5s ease;
    will-change: flex-grow, transform, box-shadow;
}

.specialties-container.has-selection .specialty-item:not(.active) {
    opacity: 0.7;
    filter: grayscale(0.4);
}

.specialty-item:not(.active):hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-strong);
    opacity: 1;
    filter: grayscale(0);
}

.specialty-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgb(0 0 0 / 25%) 20%, transparent 70%);
    transition: background 0.6s ease;
    z-index: 2;
}

.specialty-item.active {
    flex-grow: 6;
    cursor: default;
}

.specialty-item.active::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 20%, transparent 70%);
}

/* FIX: Ensure content sits above overlay for clicking */
.specialty-content,
.specialty-mobile-content {
    position: relative;
    z-index: 5;
}

.specialty-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    width: 100%;
    color: #fff;
    transition: all 0.5s ease;
}

.specialty-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    hyphens: none;
    transition: font-size 0.4s ease;
}

/* Vertical Text Logic */
.specialties-container.has-selection .specialty-item:not(.active) .specialty-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
}

.specialties-container.has-selection .specialty-item:not(.active) .specialty-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 1.5rem;
    opacity: 0.9;
}

.specialty-detail-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 90%;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(244, 238, 228, 0.1), rgba(244, 238, 228, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(244, 238, 228, 0.18);
    color: var(--light-color);
    padding: 2rem;
    text-align: left;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.65, 0, 0.35, 1);
    visibility: hidden;
}

.detail-box-text {
    flex-grow: 1;
}

.detail-box-action {
    flex-shrink: 0;
}

.specialties-layout.has-selection .specialty-detail-box {
    opacity: 1;
    max-height: 25vh;
    transform: translateY(0);
    overflow-y: auto;
    visibility: visible;
}

.specialty-detail-box h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.specialty-detail-box p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.specialty-mobile-content {
    display: none;
}

/* Specialty Images */
#spec-psiquiatria {
    background-image: url('https://i.ibb.co/cKwtZWQc/ecosaude-especialidadesmedicas-1.jpg');
}

#spec-psicoterapia {
    background-image: url('https://i.ibb.co/d0HPhMkk/Psychotherapy.jpg');
}

#spec-psicomotricidade {
    background-image: url('https://i.ibb.co/MDXGp5Vq/1-33f7ad3b-e5f6-4a99-883b-89d061482e4d.webp');
}

#spec-musicoterapia {
    background-image: url('https://i.ibb.co/CpHPW3wJ/hero-music-therapy.jpg');
}

#spec-servico-social {
    background-image: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?q=80&w=2070&auto=format&fit=crop');
}

/* TEAM */
.team-layout-grid {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 4rem;
    width: 90%;
    max-width: 1500px;
    align-items: center;
}

.mission-statement {
    text-align: left;
    color: var(--light-color);
}

.mission-statement .section-title {
    font-size: 2.2rem;
}

.mission-statement p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

#team .content-wrapper {
    width: 100%;
    height: 100%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
    transition: opacity 0.4s ease, transform 0.4s ease;
    perspective: 2000px;
}

.content-wrapper.is-viewing-profile .team-grid {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.team-member {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.team-member:hover {
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: var(--shadow-strong);
}

.team-member img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.2;
    object-fit: cover;
    border-radius: 8px;
}

.team-member::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    z-index: 1;
    border-radius: 0 0 8px 8px;
}

.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem;
    color: var(--light-color);
    z-index: 2;
    transform: translateZ(20px);
}

.member-info h3 {
    font-size: 1.2rem;
    margin: 0;
}

.member-info h4 {
    font-size: 0.85rem;
    font-weight: 300;
    margin: 0;
}

/* PROFILE MODAL */
.profile-detail-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 18, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.profile-detail-view.is-active {
    opacity: 1;
    pointer-events: auto;
}

.profile-content-wrapper {
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    background: #f5fcf2;
    color: #525b51;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
}

.profile-close-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: #657364;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 100;
}

.profile-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.profile-content.active {
    display: block;
}

.profile-content img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.profile-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.profile-content h3 {
    font-size: 1.1rem;
    color: var(--accent-color);
    opacity: 0.9;
    font-weight: 600;
    margin-bottom: 2rem;
}

.profile-content p {
    line-height: 1.8;
    text-align: left;
    font-size: 1rem;
}

/* TESTIMONIALS & FAQ */
#testimonials-faq .content-wrapper,
#contact .content-wrapper {
    perspective: 2000px;
}

.testimonials-faq-grid {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 2.5rem;
    height: 100%;
}

.testimonial-spotlight {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card {
    position: absolute;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.8;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.testimonial-author {
    cursor: pointer;
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-author:hover,
.testimonial-author.active {
    opacity: 1;
}

.testimonial-author:hover {
    transform: scale(1.05);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.testimonial-author.active img {
    border-color: var(--primary-color);
}

.testimonial-author span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.faq-container {
    overflow-y: auto;
    padding-right: 1rem;
}

.faq-item {
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item summary {
    font-weight: 600;
    padding: 1.25rem 0.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item[open]>summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 0.5rem 1.5rem 0.5rem;
    opacity: 0.8;
}

/* ACCORDION ANIMATION */
.symptom-accordion-item .accordion-content-wrapper,
.faq-item .accordion-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.symptom-accordion-item[open]>.accordion-content-wrapper,
.faq-item[open]>.accordion-content-wrapper {
    grid-template-rows: 1fr;
}

.symptom-accordion-item .accordion-content,
.faq-item .accordion-content {
    overflow: hidden;
}

.symptom-accordion-item .accordion-content .content-inner,
.faq-item .accordion-content p {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.4s ease-out;
    transition-delay: 0.15s;
}

.symptom-accordion-item[open] .accordion-content .content-inner,
.faq-item[open] .accordion-content p {
    opacity: 1;
    transform: translateY(0);
}

.faq-item .accordion-content p {
    padding: 0.25rem 0.5rem 1.5rem 0.5rem;
    margin: 0;
}

/* CONTACT PANEL AESTHETICS */
#contact .content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: 1200px;
    overflow: visible;
}

.contact-glass-card {
    display: grid;
    grid-template-columns: 40% 60%;
    background: linear-gradient(135deg, rgba(252, 252, 252, 0.13), rgba(158, 156, 151, 0));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px rgba(82, 91, 81, 0.15);
    overflow: hidden;
    min-height: 600px;
}

.contact-visual-side {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    color: var(--light-color);
    position: relative;
}

.contact-header .section-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.contact-intro {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    text-align: left;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.info-item .icon {
    font-size: 1.2rem;
    opacity: 0.7;
}

.info-item strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 2px;
}

.info-item p {
    font-size: 1rem;
    font-weight: 500;
}

/* Map Integration */
.map-wrapper {
    margin-top: auto;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(252, 252, 252, 0.13), rgba(158, 156, 151, 0));
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(100%) sepia(20%) brightness(95%) contrast(90%);
    transition: filter 0.3s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%) contrast(100%);
}

/* 3. Form Side (Right) */
.contact-form-side {
    padding: 3rem;
    display: flex;
    align-items: center;
}

#contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem 3rem;
    width: 100%;
}

/* Form Feedback Messages */
#form-feedback {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
    /* Hidden by default */
}

#form-feedback.success {
    background-color: rgba(136, 153, 124, 0.2);
    color: var(--dark-color);
    border: 1px solid var(--primary-hover);
}

#form-feedback.error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #a83232;
    border: 1px solid #a83232;
}

/* --- 9.5. FORM INPUT STYLES --- */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
}

.floating-input {
    width: 100%;
    padding: 1.2rem 1rem 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--light-color);
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.floating-input:focus,
.floating-input:not(:placeholder-shown) {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(136, 153, 124, 0.2);
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    pointer-events: none;
    color: rgba(245, 252, 242, 0.6);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.floating-input:focus~label,
.floating-input:not(:placeholder-shown)~label {
    top: 0.2rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- 9.6. STYLED DROPDOWN (SELECT) --- */
select.floating-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23657364' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
    /* Space for arrow */
}

select.floating-input option {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 10px;
    border-radius: 12px;
}

/* Fix for label position when value is selected (valid) */
select.floating-input:valid~label {
    top: 0.2rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- 10. RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .home-title {
        font-size: 3.5rem;
    }

    .home-subtitle {
        font-size: 1.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 2.5rem 1.5rem;
        max-height: 90vh;
    }

    .section-title {
        font-size: 2rem;
    }

    .deco-blob {
        display: none;
    }

    .team-layout-grid {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
        padding: 1rem;
        gap: 2rem;
    }

    .mission-statement {
        text-align: center;
        padding-right: 0;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .constellation-container {
        max-height: 40vh;
    }

    #symptoms .content {
        overflow-y: auto;
    }
}

@media (max-width: 840px) {
    body {
        overflow: auto;
    }

    body.profile-open {
        overflow: hidden;
    }

    #main-wrapper {
        height: auto;
        transform: none !important;
    }

    #dot-pagination,
    .btn-fixed-cta {
        display: none;
    }

    .panel.active .animates-children {
        animation: none;
    }

    .animates-children>* {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .lang-toggle-container {
        top: 1.5rem;
        right: 1.5rem;
    }

    html {
        scroll-snap-type: y mandatory;
        overscroll-behavior-y: contain;
    }

    .panel {
        height: auto;
        min-height: 100vh;
        padding: 3rem 1rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow: visible;
    }

    #symptoms .content {
        overflow-y: auto;
    }

    .panel-title {
        opacity: 1;
        transform: none;
        animation: none;
        position: relative;
        top: auto;
        left: auto;
        display: inline-block;
        margin-bottom: 3rem;
        align-self: flex-start;
    }

    .content {
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 1rem;
        width: 100%;
    }

    #home {
        height: 100vh;
        justify-content: flex-end;
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #home::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background: linear-gradient(to top, rgba(36, 43, 35, 0.5) 10%, transparent 60%);
    }

    #home .home-title {
        font-size: 2.8rem;
    }

    #home .home-subtitle {
        font-size: 1.1rem;
        max-width: 90%;
    }

    #home .content-wrapper {
        padding: 0;
    }

    #home .home-content {
        background: linear-gradient(135deg, rgba(252, 252, 252, 0.13), rgba(158, 156, 151, 0));
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(244, 238, 228, 0.18);
        border-radius: 12px;
        padding: 2rem 1.5rem;
        margin: 0;
        box-shadow: 0 20px 25px rgba(0, 0, 0, 0.2);
        animation: floaty 6s ease-in-out 1.7s infinite;
        transition: none;
        text-align: center;
        max-width: none;
    }

    #home::after {
        background-image: url('https://i.ibb.co/sJqGPn2g/Whats-App-Image-2025-09-20-at-19-12-21-5.png');
        background-size: cover;
        background-position: top center;
        background-attachment: local;
    }

    /* MOBILE SYMPTOMS */
    .symptoms-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        height: auto;
    }

    .constellation-container {
        position: relative;
        width: 100%;
        height: auto;
        max-height: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .symptom-orb {
        position: relative;
        top: auto !important;
        left: auto !important;
        animation: none;
        width: auto !important;
        height: auto !important;
        padding: 0.6rem 1.2rem;
        border-radius: 50px;
        font-size: 0.9rem !important;
    }

    .symptom-orb:hover,
    .symptom-orb.active {
        transform: scale(1.05);
    }

    .symptom-display-panel {
        min-height: auto;
        background: rgba(255, 255, 255, 0.1);
    }

    .symptoms-accordion {
        display: none;
    }

    /* FIX: MOBILE CONTACT LAYOUT */
    #contact .content {
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100vh;
    }

    /* Apply PC Glass Style to main container on Mobile */
    .contact-glass-card {
        display: block;
        /* Allows natural flow */
        height: 100%;
        overflow-y: auto;
        /* ENABLE SCROLLING FOR CONTAINER */
        /* Requested Glass Style */
        background: linear-gradient(135deg, rgba(252, 252, 252, 0.13), rgba(158, 156, 151, 0));
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        padding-bottom: 2rem;
    }

    /* MAP SECTION - TOP */
    .contact-visual-side {
        padding: 0;
        background: transparent;
        display: contents;
        /* Let children flow naturally */
    }

    .map-wrapper {
        height: 220px;
        /* Increased Height */
        width: 100%;
        border-radius: 20px 20px 0 0;
        order: 1;
        /* Visually First */
        margin-bottom: 1rem;
    }

    /* CONTACT INFO SECTION - MIDDLE */
    .contact-header {
        display: none;
        /* Hide heavy header text */
    }

    .contact-intro {
        display: none;
    }

    .info-list {
        order: 2;
        /* Visually Second */
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0 1.5rem;
        margin-bottom: 1rem;
    }

    .info-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        text-align: left;
    }

    .info-item .icon {
        display: none;
    }

    .info-item strong {
        color: var(--accent-color);
        opacity: 1;
    }

    /* FORM SECTION - BOTTOM */
    #contact .contact-form-side {
        order: 3;
        /* Visually Last */
        padding: 1rem 1.5rem;
        display: block;
        background: transparent;
        margin-top: 0;
    }

    #contact .btn-submit {
        margin-top: 2rem;
        width: 100%;
    }

    #specialties .specialties-layout {
        justify-content: flex-start;
    }

    .specialties-layout.has-selection .specialties-container,
    .specialties-container {
        flex-direction: column;
        height: auto;
        width: 100%;
        gap: 1rem;
    }

    .specialty-item {
        z-index: 1;
        min-height: 150px;
        flex-grow: 1 !important;
        filter: none !important;
        opacity: 1 !important;
        justify-content: flex-end;
        display: flex;
        flex-direction: column;
    }

    .specialty-item::after {
        background: linear-gradient(to top, rgb(0 0 0 / 70%) 20%, transparent 80%);
        z-index: 2;
    }

    .specialty-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(30, 35, 30, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1;
        border-radius: 1rem;
    }

    .specialty-content,
    .specialty-mobile-content {
        position: relative;
        z-index: 10;
    }

    .specialty-content {
        padding: 1rem 1.5rem;
    }

    .specialty-title {
        font-size: 1.5rem;
        writing-mode: horizontal-tb !important;
        transform: none !important;
        white-space: normal !important;
    }

    .specialty-detail-box {
        display: none;
    }

    .specialty-mobile-content {
        display: block;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        background: none;
        backdrop-filter: none;
        transition: max-height 0.6s ease-out, opacity 0.6s ease-out, padding-top 0.6s ease-out, padding-bottom 0.6s ease-out;
    }

    .specialty-item.active .specialty-mobile-content {
        opacity: 1;
        max-height: 500px;
        padding: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .specialty-mobile-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        color: var(--light-color);
    }

    /* MOBILE PROFILE MODAL */
    .profile-detail-view {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background: rgba(15, 18, 15, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 10000;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: none;
        overscroll-behavior: contain;
    }

    .profile-content-wrapper {
        width: 90%;
        max-width: 400px;
        max-height: 90%;
        border-radius: 12px;
        overflow-y: auto;
        background: #f5fcf2;
        color: #525b51;
        padding: 4rem 1.5rem 2rem 1.5rem;
        margin: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .profile-close-btn {
        position: absolute;
        top: 1rem;
        left: 1rem;
        margin: 0;
        background: rgba(82, 91, 81, 0.9);
        color: white;
        z-index: 10001;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}

/* --- CUSTOM SELECT DROPDOWN --- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-wrapper select {
    display: none;
    /* Hide native select */
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.2rem 1rem 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--light-color);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 3.5rem;
}

.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-hover);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--accent-color);
    border-radius: 12px 12px 0 0;
    background: rgba(255, 255, 255, 0.15);
}


.custom-arrow {
    position: relative;
    height: 10px;
    width: 10px;
}

.custom-arrow::before,
.custom-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0.15rem;
    height: 100%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.custom-arrow::before {
    left: -3px;
    transform: rotate(-45deg);
}

.custom-arrow::after {
    left: 3px;
    transform: rotate(45deg);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: var(--accent-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.custom-select-wrapper.open .custom-arrow::before {
    left: -3px;
    transform: rotate(45deg);
}

.custom-select-wrapper.open .custom-arrow::after {
    left: 3px;
    transform: rotate(-45deg);
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.custom-option {
    position: relative;
    display: block;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--light-color);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover,
.custom-option.selected {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 1.5rem;
}

.custom-option.selected::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 12px;
    border: solid var(--accent-color);
    border-width: 0 2px 2px 0;
    transform: translateY(-60%) rotate(45deg);
}

/* Adjust label for custom select */
.custom-select-wrapper label {
    z-index: 10;
}

.custom-select-wrapper.has-value label {
    top: 0.2rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- FOOTER & LEGAL --- */
.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem;
    background: rgba(15, 18, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--light-color);
    font-size: 0.85rem;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.legal-link {
    color: var(--light-color);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.legal-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.separator {
    opacity: 0.3;
}

.legal-disclaimer {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Contact Phone Link */
.contact-phone-link {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

.contact-phone-link:hover {
    color: var(--primary-hover);
    border-bottom-style: solid;
}

@media (max-width: 840px) {
    .site-footer {
        position: relative;
        padding-bottom: 6rem;
        margin-top: 2rem;
        background: transparent;
        border-top: none;
    }
}