/* CSS Design System - Dental Clinic */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #06b6d4;
    /* Cyan/Teal for a clinical yet modern look */
    --accent-soft: #ecfeff;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    transition: opacity 0.5s ease;
}

/* FOUC Protection */
body.loading-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.content-ready {
    opacity: 1;
}

.loading-state {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 20px;
}

.loading-state::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid var(--accent-soft);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating WhatsApp & Consultation Buttons */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: 0.3s;
}

.wa-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.consultation-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--accent), #0891b2);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    z-index: 999;
    transition: 0.3s;
    cursor: pointer;
}

.consultation-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

h1,
h2,
h3,
h4 {
    color: var(--primary);
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

/* Section Styling */
.section {
    padding: 80px 0;
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: white;
}

/* Navigation */
header {
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: #0a1428;
    /* Dark navy brand color */
    position: sticky;
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

header.header-transparent {
    background: transparent;
    box-shadow: none;
    padding: 20px 0;
    position: absolute;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    background: rgba(10, 20, 40, 0.98);
    /* Matching dark navy */
    backdrop-filter: blur(15px);
    padding: 15px 0;
    /* Fixed height to match non-scrolled */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Remove dual logo toggle logic */
header.scrolled .logo img.logo-light,
header:not(.header-transparent) .logo img.logo-light {
    display: block;
}

header.scrolled .logo img.logo-dark,
header:not(.header-transparent) .logo img.logo-dark {
    display: none;
}

header.sticky-nav {
    position: sticky;
    top: 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Ensure child absolute elements position relative to this */
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: 0.3s;
    /* Strong layered shadow for maximum definition */
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}

header.scrolled .logo img {
    height: 90px;
    /* Logo no longer shrinks on scroll */
}

.logo img.logo-dark {
    display: none !important;
}

.logo span {
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    /* Changed to white for dark background */
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* Transparent State (Homepage Top) */
header.header-transparent {
    background-color: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

header.header-transparent .logo a,
header.header-transparent .nav-links a {
    color: white;
}

header.header-transparent .nav-links a:hover,
header.header-transparent .nav-links a.active {
    color: var(--accent);
}

header.header-transparent .btn-primary {
    background-color: var(--accent);
    color: white;
}

/* Scrolled State handled above */

/* Hero Section */
.hero-slider {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-slider h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Treatment Grid */
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-grid,
.doctor-profiles,
.contact-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.doctor-profiles {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.doctor-detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.doctor-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.treatment-detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.blog-detail-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.treatment-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.treatment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--accent);
}

.treatment-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Card Styles for Dynamic Content */
.blog-card {
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.blog-card h3 {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    word-break: break-word;
    font-size: 1.1rem;
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    height: 2.7em;
    margin-bottom: 10px;
}

.read-more-btn {
    color: var(--accent);
    font-weight: 500;
    display: inline-block;
}

.doctor-card {
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: 0.3s;
}

.doctor-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 15px 0 10px 0;
}

.doctor-role {
    color: var(--accent);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 15px 0;
}

.doctor-bio {
    margin: 15px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    height: 3em;
}

.profile-link {
    color: var(--accent);
    margin-top: 20px;
    display: inline-block;
    font-weight: 500;
}

.blog-card:hover, .doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.treatment-img-container {
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.treatment-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.treatment-card h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.treatment-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    height: 3em;
}

.examine-btn {
    color: var(--accent);
    font-weight: 500;
    margin-top: 15px;
    display: inline-block;
}

.grid-gap-small {
    gap: 30px;
}



/* Hero Slider Styles */
.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slider-bg .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider-bg .slide.active {
    opacity: 1;
}

/* Hide navigation circles/arrows specifically on Hero Slider if injected */
.hero-slider .slider-controls,
.hero-slider button,
.hero-slider .circle-btn {
    display: none !important;
}

/* Consultation Wizard */
.wizard-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-lg);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 1rem;
}

/* Footer & Floating */
footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 40px;
}

footer h3,
footer h4 {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-links a,
.footer-contact p,
.footer-info p {
    color: #cbd5e1;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}


.wa-float span {
    font-weight: 500;
}

.wa-float:hover {
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    /* White for dark background */
    border-radius: 3px;
    transition: all 0.3s ease;
}

header.header-transparent .hamburger span {
    background-color: white;
}

header.scrolled .hamburger span {
    background-color: var(--primary);
}

/* Hamburger Active State (X shape) inside white drawer */
.hamburger.active span {
    background-color: var(--primary) !important;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Background overlay when drawer is open */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

    /* Show Hamburger */
    .hamburger {
        display: flex;
    }

    /* Mobile Navigation Drawer */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 30px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-sizing: border-box;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        padding: 20px 0;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        justify-content: center; /* Center links on mobile */
        align-items: center;
        text-align: center;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    header .nav-links li a,
    header.header-transparent .nav-links li a {
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--primary);
        width: 100%;
        display: block;
    }

    header .nav-links li a.active,
    header.header-transparent .nav-links li a.active {
        color: var(--accent);
        font-weight: 600;
    }

    /* Move desktop CTA to bottom of mobile drawer */
    .nav-cta {
        display: none !important;
    }

    .nav-cta.active {
        display: flex !important; /* Force override inline styles */
        flex-direction: column;
        align-items: center;
        gap: 20px;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        background: transparent;
        padding: 30px 0;
        box-shadow: none;
        width: 100%;
        text-align: center;
        margin-top: auto;
        /* Push to bottom */
    }

    .nav-cta.active .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Hero Section Mobile */
    .hero-slider h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .hero-slider p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px !important;
    }

    .hero-btns .btn {
        width: 80%;
        text-align: center;
    }

    /* Treatment Grid Mobile */
    .treatment-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Section Padding Mobile */
    .section {
        padding: 50px 0;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Wizard Mobile */
    .wizard-container {
        margin: 20px auto;
        padding: 25px 20px;
    }

    /* Container width */
    .container {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }


    /* WhatsApp Float Mobile */
    .wa-float {
        bottom: 20px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .wa-float span {
        display: none;
    }

    .consultation-float {
        bottom: 20px !important;
        left: 10px !important;
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    /* Blog Cards Mobile */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .blog-card {
        padding: 12px !important;
    }


    .blog-detail-img {
        height: 250px !important;
        margin-bottom: 25px !important;
    }

    /* Doctor Cards Mobile */
    .doctor-grid,
    .doctor-profiles,
    .contact-grid,
    .doctor-detail-grid,
    .doctor-specs-grid,
    .treatment-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Tedavi detayında fotoğrafı yazının üstüne taşı */
    .treatment-detail-grid > div:last-child {
        order: -1;
    }

    .doctor-card {
        padding: 20px !important;
    }

    .treatment-card {
        padding: 20px 15px !important;
    }


    /* Stats Grid on sub-pages */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* General text size adjustments */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .doctor-profiles {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero-slider h1 {
        font-size: 3rem;
    }
}

.flex {
    display: flex;
}

.gap-10 {
    gap: 10px;
}

.text-center {
    text-align: center;
}

/* Treatment Details Page */
.treatment-detail {
    transition: 0.3s;
    border-left: 5px solid transparent;
}

.treatment-detail:target {
    border-left: 5px solid var(--accent);
    background: var(--accent-soft);
    transform: scale(1.02);
}

.treatment-detail h2 {
    margin-bottom: 20px;
    color: var(--accent);
}

.treatment-detail ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}


.treatment-detail ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Testimonials Scroll Hijack (Hidden scrollbar but scrollable) */
#ba-grid::-webkit-scrollbar,
#testimonials-grid::-webkit-scrollbar {
    display: none;
}

#ba-grid,
#testimonials-grid {
    scrollbar-width: none;
}

.ba-slider-container {
    flex: 0 0 calc(33.333% - 20px) !important;
    max-height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.testimonials-section .ba-slider-container {
    flex: 0 0 calc(33.333% - 20px) !important;
    max-height: 400px;
    position: relative;
}

.testimonials-section .circle-btn:hover {
    background: var(--accent) !important;
    color: white !important;
    transform: scale(1.1);
}

.review-card {
    flex: 0 0 calc(50% - 15px);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.review-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .review-card {
        flex: 0 0 calc(50% - 15px) !important;
        min-height: 250px;
    }

    .ba-slider-container {
        flex: 0 0 calc(50% - 15px) !important;
        max-height: 350px;
    }
}

@media (max-width: 600px) {

    .review-card,
    .ba-slider-container {
        flex: 0 0 100% !important;
    }

    .review-card {
        min-height: auto;
        padding: 20px !important;
    }

    .ba-slider-container {
        max-height: 300px;
    }

    .slider-controls {
        padding: 0 10px !important;
        top: 50% !important;
    }
}

.review-card:hover {
    transform: scale(1.02);
}

/* Online Consultation Wizard */
.wizard-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.wizard-step.active {
    display: block;
}

.wizard-step h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix for language switcher options visibility on mobile/safari */
#lang-select option {
    background-color: #ffffff;
    color: #0f172a;
    font-weight: 500;
}

/* Outline navigation buttons for sliders below content */
.outline-nav {
    pointer-events: auto;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.outline-nav:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

/* ===== Consultation Wizard ===== */
.wizard-container {
    max-width: 600px;
    margin: 0 auto;
}

.wizard-step {
    display: none;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(6, 182, 212, 0.15);
    animation: fadeInUp 0.35s ease;
}

.wizard-step.active {
    display: block;
}

.wizard-step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.wizard-step .form-group {
    margin-bottom: 20px;
}

.wizard-step .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.wizard-step .form-group input,
.wizard-step .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: white;
    outline: none;
}

.wizard-step .form-group input:focus,
.wizard-step .form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Prevent long unbroken text from overflowing cards */
.doctor-card {
    min-width: 0;
    overflow: hidden;
}

.doctor-card p, .doctor-card h3,
.treatment-card p, .treatment-card h3,
.glass p, .glass h3 {
    word-break: break-word;
    overflow-wrap: break-word;
}