/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c7be5;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --success-color: #20c997;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --font-primary: 'Inter', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1e6fd9);
    color: var(--white);
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    gap: 5rem;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 5px 10px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 500;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.lang-dropdown {
    padding: 5px 10px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-700);
}
.lang-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 123, 229, 0.2);
}
.lang-dropdown option {
    color: var(--gray-700);
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 40%;
    width: 100vw;
    height: 100vh;
    background-image: url(https://fizyoterapistfatmaakantopbas.dslink.co/image/logo1.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    pointer-events: none;
    transform: rotate(-5deg);
    transition: opacity 0.3s ease;
}

.hero:hover::before {
    opacity: 0.3;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* grid-template-columns: 1fr 1fr; */
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 20px 2rem;
    position: relative;
    z-index: 2;
    flex: 1;
}

/* Treatment Selection Hero Styles */
.treatment-selection-hero {
    position: relative;
    z-index: 2;
    padding: 1rem 0 4rem;
    width: 100%;
}

.treatment-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.treatment-title {
    color: #ffffff59;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    text-shadow:none;
    letter-spacing: -0.5px;
}

.treatment-subtitle {
    text-align: center;
    margin-top: 1.5rem;
    opacity: 0.8;
}

.treatment-subtitle p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.hero-content {
    color: var(--white);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    width: max-content;
}

.hero-subtitle {
    color: var(--gray-300) !important;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Security Badge */
.security-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.security-badge:hover {
    transform: scale(1.05);
    background: var(--white);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-title {
    font-size: 2.5rem;
    color: var(--gray-800); 
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Treatment Selection Section */
.treatment-selection {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.treatment-selection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(44, 123, 229, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(44, 123, 229, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.treatment-tree-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

/* Remove old selection process styles - now using step navigation */
.selection-step,
.selection-grid,
.selection-card,
.selection-progress,
.treatment-result {
    display: none !important;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--gray-100);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), #1e6fd9);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    box-shadow: var(--box-shadow-lg);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #1e6fd9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: var(--gray-100);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Gallery Section */
.gallery {
    padding: 6rem 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.04);
    box-shadow: var(--box-shadow-lg);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 123, 229, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.gallery-popup img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

.gallery-popup .close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #1e6fd9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    gap: 1rem;
}

.gallery-placeholder span {
    font-size: 1rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--gray-100);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 12px;
    color: var(--gray-500);
    transition: var(--transition);
    pointer-events: none;
    background: var(--white);
    padding: 0 4px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Contact Map */
.contact-map {
    margin-top: 2rem;
}

.contact-map h3 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: var(--white);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: none;
}

/* Contact Main Layout */
.contact-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-map {
    grid-column: 1 / -1;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo .logo {
    width: 40px;
    height: 40px;
}

.footer-section p {
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
    text-align: center;
    color: var(--gray-400);
}

/* Treatment Navigator Styles - REMOVED - No longer needed */

/* =============================================================================
   OLD Treatment Tree Navigation Styles - REMOVED - Using new step-based design
   ============================================================================= */

/* OLD Selected treatment display - REMOVED */

/* OLD Loading state styles - REMOVED */

#treatment-tree-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    width: 100%;
}

/* Mobile responsiveness */
@media (max-width: 770px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--box-shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section Mobile Styles - Complete Rewrite */
    .hero {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    
    .hero::before {
        top: 10%;
        left: 20%;
        width: 120vw;
        height: 120vh;
        opacity: 0.15;
        transform: rotate(-10deg);
    }
    
    .hero-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
        min-height: auto;
        flex: 1;
    }
    
    .hero-content {
        width: 100%;
        max-width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        order: 1;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        text-align: center;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        align-items: center;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        text-align: center;
        border-radius: 12px;
        font-weight: 600;
        min-height: 48px; /* Touch-friendly button height */
    }
    
    .hero-image {
        order: 2;
        margin-top: 1rem;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-placeholder {
        width: 200px;
        height: 200px;
        font-size: 3rem;
        border-width: 1px;
    }
    
    /* Security Badge Mobile */
    .security-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1.5rem;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        order: 3;
        width: fit-content;
        align-self: center;
    }
    
    /* Treatment Selection Mobile Styles */
    .treatment-selection-hero {
        padding: 1rem 0 2rem;
    }
    
    .treatment-section-header {
        margin-bottom: 1rem;
    }
    
    .treatment-title {
        font-size: 1.4rem;
        line-height: 1.1;
        margin: 0 0 0.5rem 0;
        padding: 0 1rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .treatment-subtitle {
        margin-top: 0.5rem;
        padding: 0 1rem;
    }
    
    .treatment-subtitle p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin: 0;
    }
    
    .treatment-tree {
        padding: 1.5rem;
        border-radius: 15px;
        margin: 0 1rem;
    }
    
    #treatment-tree-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
    }
    
    .tree-level-1 {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .tree-item {
        width: 100%;
        /* max-width: 200px; */
    }
    
    .tree-link {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
        min-width: 100px;
        width: max-content;
    }
    
    .tree-level-2,
    .tree-level-3 {
        padding-left: 1rem;
    }
    
    /* Simple treatment card mobile styles */
    .selected-treatment {
        margin-left: 0;
        margin-top: 2rem;
        width: 100%;
        max-width: 300px;
        animation: fadeInUp 0.5s ease-out;
    }
    
    .treatment-card-simple {
        margin: 0 auto;
        padding: 1.5rem;
    }
    
    .treatment-name-simple {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .btn-appointment-simple {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-map {
        margin-top: 1.5rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero Section - Extra Small Mobile */
    .hero-container {
        padding:8.5rem 0.75rem 1.5rem 0.75rem;
        gap: 1.5rem;
    }
    
    .hero-content {
        max-width: 95%;
    }
    
    .hero-title {
        font-size: 1.9rem;
        margin-bottom: 0.75rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0;
    }
    
    .hero-buttons {
        max-width: 100%;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .hero-placeholder {
        width: 180px;
        height: 180px;
        font-size: 2.5rem;
    }
    
    .security-badge {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
        margin-top: 1rem;
    }
    
    /* Treatment Title Mobile */
    .treatment-title {
        font-size: 1.3rem;
        padding: 0 0.5rem;
        margin: 0;
        line-height: 1.05;
    }
    
    .treatment-subtitle p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .treatment-selection-hero {
        padding: 0.75rem 0 1.5rem;
    }
    
    .treatment-tree {
        padding: 1.25rem;
        margin: 0 0.5rem;
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .map-container iframe {
        height: 200px;
    }
}

/* Extra small phones */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-placeholder {
        width: 160px;
        height: 160px;
        font-size: 2rem;
    }
    
    .treatment-title {
        font-size: 1.2rem;
        padding: 0 0.25rem;
        margin: 0;
        line-height: 1;
    }
    
    .treatment-subtitle p {
        font-size: 0.7rem;
    }
    
    .treatment-selection-hero {
        padding: 0.5rem 0 1rem;
    }
    
    .treatment-tree {
        padding: 1rem;
        margin: 0 0.25rem;
    }
}

/* Very small phones */
@media (max-width: 320px) {
    .hero-container {
        padding: 1.25rem 0.5rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-placeholder {
        width: 140px;
        height: 140px;
        font-size: 1.8rem;
    }
    
    .treatment-title {
        font-size: 1.1rem;
        padding: 0 0.25rem;
        margin: 0;
        line-height: 0.95;
    }
    
    .treatment-subtitle p {
        font-size: 0.65rem;
    }
    
    .treatment-selection-hero {
        padding: 0.25rem 0 0.75rem;
    }
    
    .treatment-tree {
        padding: 0.75rem;
        margin: 0 0.1rem;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.message.error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
} 

/* Treatment Selection Hero - New Design */
.treatment-selection-hero {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8e6db8 100%); */
    padding: 1rem 0 4rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* .treatment-selection-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><text x="100" y="110" text-anchor="middle" fill="rgba(255,255,255,0.1)" font-family="Arial" font-size="24" font-weight="bold">TC</text></svg>') no-repeat;
    background-size: contain;
    opacity: 0.6;
    z-index: 1;
} */

.treatment-selection-hero .container {
    position: relative;
    z-index: 2;
}

/* New Layout Container - Side by Side */
.treatment-layout-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Vertical Title Section */
.treatment-title-vertical {
    display: flex;
    align-items: center;
    min-height: 300px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.treatment-title {
    color: #ffffff59;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow:none;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

/* Updated Treatment Steps Container */
.treatment-steps {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex: 1;
    max-width: 1000px;
}

/* Step Box Styling */
.step-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.step-box:hover {
    /* transform: translateY(-5px); */
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Step 1 - Category Selection */
.step-1 {
    flex: 1;
    max-width: 280px;
}

.step-number {
    position: absolute;
    top: 95%;
    right: 44%;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow:none;
    z-index: 3;
}

.category-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Category Button Checkmark Overlay */
.category-btn.active {
    /* background: linear-gradient(135deg, #667eea, #764ba2); */
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.3);
    position: relative;
}

/* Remove individual button checkmark - now using step box overlay */
.category-btn.active::after {
    display: none;
}

.category-btn.active .category-icon,
.category-btn.active span {
    opacity: 1;
}

/* Step-1 Box Checkmark Overlay when category is selected */
.step-1.completed {
    position: relative;
}

.step-1.completed .step-content {
    opacity: 0.7;
    filter: blur(1px);
    transition: all 0.3s ease;
}

.step-1.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.8),
                 0 2px 8px rgba(76, 175, 80, 0.5);
    z-index: 4;
    animation: checkmarkAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkmarkAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(-15deg);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

/* Category Button Active State */
.category-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.3);
    position: relative;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.category-btn.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.5;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.2; }
}

/* Section and Subsection Active States */
.section-btn.active,
.subsection-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.3);
    transform: scale(1.02);
}

.section-btn.active .section-number,
.subsection-btn.active .subsection-number {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

/* Mobile Responsiveness for Checkmark */
@media (max-width: 768px) {
    .step-1.completed::after {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .step-1.completed::after {
        font-size: 2.5rem;
    }
}

/* Step 2 & 3 - Main Action Boxes */
.step-2, .step-3 {
    flex: 1.2;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.step-2:hover, .step-3:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.step-content {
    text-align: center;
    width: 100%;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: inherit;
}

.step-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
}

/* Hidden content for step completion */
.step-box.completed .step-content {
    opacity: 0.7;
    filter: blur(1px);
    transition: all 0.3s ease;
}

.step-box.completed::after {
    content: '✓';
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.8),
                 0 2px 8px rgba(76, 175, 80, 0.5);
    z-index: 4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .treatment-selection-hero {
        padding: 3rem 0;
    }
    
    /* Switch to vertical layout on mobile */
    .treatment-layout-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    /* Reset title to horizontal on mobile - #mobiletitlee */
    .treatment-title-vertical {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        min-height: auto;
        text-align: center;
        margin-bottom: 1rem;
        transform: none; /* Mobilde döndürme işlemini kaldır #rotatee */
    }
    
    .treatment-title {
        font-size: 2rem;
        letter-spacing: 0.05em;
    }
    
    .treatment-steps {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .step-box {
        max-width: 100%;
        width: 100%;
        min-height: 200px;
        padding: 1.5rem;
    }
    
    .step-number {
        top: -12px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .category-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .treatment-selection-hero {
        padding: 2rem 0;
    }
    
    .treatment-layout-container {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    /* Küçük mobil cihazlarda da döndürme kaldır #smallmobilee */
    .treatment-title-vertical {
        transform: none;
    }
    
    .treatment-title {
        font-size: 1.7rem;
    }
    
    .treatment-steps {
        gap: 1rem;
    }
    
    .step-box {
        min-height: 180px;
        padding: 1.2rem;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
} 

/* Section and Subsection Button Styles */
.sections-grid,
.subsections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.section-btn,
.subsection-btn {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
    justify-content: flex-start;
}

.section-btn:hover,
.subsection-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.2);
}

.section-btn.active,
.subsection-btn.active {
    /* background: linear-gradient(135deg, var(--primary-color) 0%, #1976d2 100%); */
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.3);
}

.section-number,
.subsection-number {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    line-height: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    /* margin-bottom: 0.5rem; */
}

.section-btn.active .section-number,
.subsection-btn.active .subsection-number {
    background: white;
    color: var(--primary-color);
}

.section-title,
.subsection-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.subsection-title {
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Success Message Styling */
.success-message {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-radius: 12px;
    border: 2px solid #4caf50;
}

.success-message h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.success-message p {
    color: #388e3c;
    margin-bottom: 0.5rem;
}

.success-message strong {
    color: #1b5e20;
}

.success-message small {
    color: #4caf50;
    font-style: italic;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .sections-grid,
    .subsections-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }
    
    .section-btn,
    .subsection-btn {
        padding: 0.8rem;
        min-height: 70px;
    }
    
    .section-number,
    .subsection-number {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 0.8rem;
    }
    
    .section-title,
    .subsection-title {
        font-size: 0.8rem;
    }
    
    .subsection-title {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .sections-grid,
    .subsections-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .section-btn,
    .subsection-btn {
        padding: 1rem;
        min-height: 60px;
    }
    
    .success-message {
        padding: 1rem;
    }
} 

/* Appointment Confirmation Popup Styles - Minimal & Modern */
.appointment-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.appointment-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.appointment-popup-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.appointment-popup-overlay.show .appointment-popup-content {
    transform: scale(1);
}

.popup-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 1.5rem;
    position: relative;
}

.popup-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.popup-header h3::before {
    content: "📅";
    font-size: 1rem;
}

.popup-close-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0.7rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.3rem;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.popup-body {
    padding: 1rem 1.5rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.appointment-details {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(44, 123, 229, 0.15);
    position: relative;
}

.appointment-details::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 4px 0 0 4px;
}

.appointment-details p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.appointment-details p:last-child {
    margin-bottom: 0;
}

.appointment-details strong {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 90px;
    display: inline-block;
    font-size: 0.8rem;
}

.appointment-details .detail-value {
    color: #2d3748;
    font-weight: 500;
    flex: 1;
}

.patient-info-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.patient-info-section h4 {
    color: var(--primary-color);
    margin: 0 0 0.7rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.patient-info-section .form-group {
    position: relative;
    margin-bottom: 0.8rem;
}

.patient-info-section input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: border-color 0.2s ease;
    background: white;
    outline: none;
}

.patient-info-section input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 123, 229, 0.1);
}

.patient-info-section input:valid {
    border-color: #28a745;
}

.patient-info-section label {
    position: absolute;
    left: 0.6rem;
    top: 0.6rem;
    color: #6c757d;
    transition: all 0.2s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.2rem;
    font-size: 0.85rem;
}

.patient-info-section input:focus + label,
.patient-info-section input:not(:placeholder-shown) + label {
    top: -0.4rem;
    left: 0.4rem;
    font-size: 0.7rem;
    color: var(--primary-color);
    font-weight: 500;
}

.date-selection {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.date-selection label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.date-selection input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: border-color 0.2s ease;
    background: white;
}

.date-selection input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 123, 229, 0.1);
}

.date-help-text {
    margin-top: 0.3rem;
    color: #6c757d;
    font-size: 0.7rem;
    font-style: italic;
    line-height: 1.2;
}

.popup-footer {
    padding: 0.8rem 1.5rem 1rem;
    background: #f8f9fa;
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    border-top: 1px solid #dee2e6;
}

.popup-footer button {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    min-width: 80px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1976d2;
    transform: translateY(-1px);
}

.btn-primary:focus,
.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 123, 229, 0.3);
}

/* Simple scrollbar */
.popup-body::-webkit-scrollbar {
    width: 4px;
}

.popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.popup-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* Enhanced validation styling - Simple */
.form-validation-error small,
.date-validation-error small {
    color: #dc3545;
    font-size: 0.7rem;
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* Responsive Design for Popup */
@media (max-width: 768px) {
    .appointment-popup-content {
        width: 95%;
        max-width: 380px;
    }
    
    .popup-header {
        padding: 0.8rem 1.2rem;
    }
    
    .popup-body {
        padding: 0.8rem 1.2rem;
    }
    
    .popup-footer {
        padding: 0.6rem 1.2rem 0.8rem;
        flex-direction: column;
    }
    
    .popup-footer button {
        width: 100%;
        padding: 0.6rem;
    }
    
    .patient-info-section,
    .date-selection {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .appointment-details {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .appointment-details p {
        flex-direction: column;
        gap: 0.2rem;
        margin: 0.4rem 0;
    }
    
    .appointment-details strong {
        min-width: auto;
        font-size: 0.75rem;
        opacity: 0.8;
    }
    
    .appointment-details .detail-value {
        font-size: 0.85rem;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .appointment-popup-content {
        max-width: 350px;
    }
    
    .popup-header h3 {
        font-size: 0.9rem;
    }
    
    .patient-info-section input,
    .date-selection input {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .patient-info-section label {
        font-size: 0.8rem;
    }
    
    .patient-info-section input:focus + label,
    .patient-info-section input:not(:placeholder-shown) + label {
        font-size: 0.65rem;
    }
} 

/* Enhanced styling for larger screens */
@media (min-width: 1200px) {
    .treatment-layout-container {
        gap: 0;
        max-width: 1400px;
    }
    
    .treatment-title {
        font-size: 2.5rem;
        letter-spacing: 0.15em;
    }
    
    .treatment-title-vertical {
        min-height: 350px;
    }
    
    .treatment-steps {
        gap: 2.5rem;
        max-width: 1100px;
    }
    
    .step-box {
        min-height: 320px;
        padding: 2.5rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .treatment-layout-container {
        gap: 3.5rem;
    }
    
    .treatment-title {
        font-size: 3rem;
        letter-spacing: 0.12em;
    }
    
    .treatment-steps {
        gap: 2.2rem;
    }
} 

/* Enhanced Mobile Optimizations for Treatment Selection */
@media (max-width: 768px) {
    /* Treatment Selection Mobile Styles - Enhanced */
    .treatment-selection-hero {
        padding: 1rem 0 2rem;
    }
    
    /* Switch to vertical layout on mobile */
    .treatment-layout-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Reset title to horizontal on mobile */
    .treatment-title-vertical {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        min-height: auto;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .treatment-title {
        font-size: 1.8rem;
        letter-spacing: 0.05em;
        line-height: 1.2;
        margin: 0 0 0.5rem 0;
        padding: 0 0.5rem;
    }
    
    .treatment-steps {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .step-box {
        max-width: 100%;
        width: 100%;
        min-height: 160px; /* Reduced from 200px for better mobile fit */
        padding: 1.2rem;
        border-radius: 16px;
    }
    
    /* Enhanced category buttons for mobile */
    .category-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 56px; /* Touch-friendly minimum */
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .category-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .category-icon {
        font-size: 1.1rem !important;
    }
    
    .step-number {
        top: -10px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .step-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }
    
    .step-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0;
    }
    
    /* Enhanced section and subsection buttons for mobile */
    .sections-grid,
    .subsections-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .section-btn,
    .subsection-btn {
        padding: 1rem;
        min-height: 64px; /* Better touch target */
        border-radius: 12px;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .section-btn:active,
    .subsection-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .section-number,
    .subsection-number {
        min-width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .section-title,
    .subsection-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile optimizations */
    .treatment-title {
        font-size: 1.6rem;
        padding: 0 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .treatment-layout-container {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .treatment-steps {
        gap: 1rem;
    }
    
    .step-box {
        min-height: 140px; /* Further reduced for very small screens */
        padding: 1rem;
        border-radius: 14px;
    }
    
    .category-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
        min-height: 52px;
        gap: 0.6rem;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .step-content p {
        font-size: 0.85rem;
    }
    
    .section-btn,
    .subsection-btn {
        padding: 0.9rem;
        min-height: 58px;
    }
    
    .section-title,
    .subsection-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    /* iPhone SE and similar small screens */
    .treatment-title {
        font-size: 1.5rem;
        line-height: 1.1;
    }
    
    .step-box {
        min-height: 130px;
        padding: 0.9rem;
    }
    
    .category-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-height: 48px;
    }
    
    .step-content h3 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    /* Very small phones */
    .treatment-title {
        font-size: 1.4rem;
    }
    
    .step-box {
        min-height: 120px;
        padding: 0.8rem;
    }
    
    .category-btn {
        padding: 0.75rem 0.9rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    .step-content h3 {
        font-size: 0.95rem;
    }
    
    .step-content p {
        font-size: 0.75rem;
    }
}

/* Enhanced popup mobile responsiveness */
@media (max-width: 768px) {
    .appointment-popup-content {
        width: 96%;
        max-width: 400px;
        margin: 0 auto;
        max-height: 95vh;
    }
    
    .popup-header {
        padding: 1rem 1.2rem;
    }
    
    .popup-body {
        padding: 1rem 1.2rem;
        max-height: calc(95vh - 140px);
    }
    
    .popup-footer {
        padding: 0.8rem 1.2rem;
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .popup-footer button {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
        border-radius: 8px;
        min-height: 48px;
    }
    
    .patient-info-section,
    .date-selection {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    
    .patient-info-section input,
    .date-selection input {
        padding: 0.9rem 14px;
        font-size: 0.9rem;
        min-height: 48px; /* Better touch target */
        border-radius: 8px;
    }
    
    .appointment-details {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    
    .appointment-details p {
        margin: 0.6rem 0;
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-start;
    }
    
    .appointment-details strong {
        min-width: auto;
        font-size: 0.8rem;
        opacity: 0.9;
    }
    
    .appointment-details .detail-value {
        font-size: 0.9rem;
        font-weight: 600;
        color: #2d3748;
    }
}

@media (max-width: 480px) {
    .appointment-popup-content {
        width: 98%;
        max-width: 350px;
        max-height: 98vh;
    }
    
    .popup-header h3 {
        font-size: 0.95rem;
    }
    
    .patient-info-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .patient-info-section input,
    .date-selection input {
        padding: 0.8rem 12px;
        font-size: 0.85rem;
        min-height: 46px;
    }
    
    .popup-body {
        max-height: calc(98vh - 130px);
    }
}

/* Enhanced touch feedback for all interactive elements */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices only */
    .category-btn,
    .section-btn,
    .subsection-btn,
    .step-box.enabled {
        transition: transform 0.1s ease, background-color 0.2s ease;
    }
    
    .category-btn:active,
    .section-btn:active,
    .subsection-btn:active {
        transform: scale(0.97);
    }
    
    .step-box.enabled:active {
        transform: scale(0.99);
    }
}

/* Improved focus indicators for keyboard/screen reader users */
.category-btn:focus-visible,
.section-btn:focus-visible,
.subsection-btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px white, 0 0 0 5px var(--primary-color);
}

/* Smooth animations for step transitions on mobile */
@media (max-width: 768px) {
    .step-box {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .step-box.enabled {
        animation: mobileStepEnable 0.4s ease-out;
    }
    
    @keyframes mobileStepEnable {
        from {
            opacity: 0.3;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .step-1.completed::after {
        font-size: 2.2rem;
        animation: mobileCheckmarkAppear 0.4s ease-out;
    }
    
    @keyframes mobileCheckmarkAppear {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
        }
        50% {
            transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1) rotate(0deg);
        }
    }
} 

/* Subsections Grid Styling */
.subsections-grid {
    max-height: 30vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -10px;
}

/* Custom Scrollbar Styling */
.subsections-grid::-webkit-scrollbar {
    width: 6px;
}

.subsections-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.subsections-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.subsections-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox Scrollbar */
.subsections-grid {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Ensure smooth scrolling */
.subsections-grid {
    scroll-behavior: smooth;
}

.subsection-btn {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    min-height: 50px;
    justify-content: flex-start;
}

.subsection-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.subsection-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.2);
}

.subsection-number {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    line-height: 24px;
    font-weight: 500;
    font-size: 0.8rem;
    text-align: center;
}

.subsection-title {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Blog Section Styles */
.blog {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
}

.blog-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.blog-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px;
}

.blog-card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.blog-card-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}