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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #445566;
    --light-bg: #f5f9fc;
    --dark-text: #2c3e50;
    --light-text: #ffffff;
    --medical-green: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
}

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

/* Header e Navigation */
.header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero {
    background-color: #f5f9fc;
    color: var(--light-text);
    padding: 150px 20px 100px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    border-top: 50px solid #f5f9fc;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    height: 100%;
    background: url('/static/hero_background.jpeg') center/cover no-repeat;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
    text-shadow: 
        0 0 10px rgba(0,0,0,1),
        0 0 20px rgba(0,0,0,1),
        0 0 30px rgba(0,0,0,0.8),
        2px 2px 4px rgba(0,0,0,1),
        -2px -2px 4px rgba(0,0,0,1),
        2px -2px 4px rgba(0,0,0,1),
        -2px 2px 4px rgba(0,0,0,1);
    color: #ffffff;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s 0.2s both;
    text-shadow: 
        0 0 10px rgba(0,0,0,1),
        0 0 20px rgba(0,0,0,1),
        0 0 25px rgba(0,0,0,0.8),
        2px 2px 4px rgba(0,0,0,1),
        -2px -2px 4px rgba(0,0,0,1),
        2px -2px 4px rgba(0,0,0,1),
        -2px 2px 4px rgba(0,0,0,1);
    color: #ffffff;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s 0.3s both;
    text-shadow: 
        0 0 8px rgba(0,0,0,1),
        0 0 15px rgba(0,0,0,1),
        0 0 20px rgba(0,0,0,0.8),
        1px 1px 3px rgba(0,0,0,1),
        -1px -1px 3px rgba(0,0,0,1),
        1px -1px 3px rgba(0,0,0,1),
        -1px 1px 3px rgba(0,0,0,1);
    color: #ffffff;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    animation: fadeInUp 1s 0.4s both;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Features Section */
.features {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* About Section */
.about {
    padding: 80px 20px;
}

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

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.placeholder-image {
    background: linear-gradient(135deg, #5dbbca, #4a9fb0);
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.2rem;
}

.about-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 2rem 0;
}

/* Booking Section Styles */
.booking-section {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.booking-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.date-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-selector label {
    font-weight: bold;
    color: var(--secondary-color);
}

.date-selector input[type="date"] {
    padding: 12px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
}

.date-selector input[type="date"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.time-slots-container h4,
.booking-form-container h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.time-slot {
    padding: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    background: white;
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s;
}

.time-slot:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.time-slot.selected {
    background: #5dbbca;
    color: white;
    border-color: #5dbbca;
}

.time-slot.unavailable {
    background: #ddd;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
}

.time-slot.unavailable:hover {
    transform: none;
    box-shadow: none;
}

.booking-form {
    max-width: 500px;
    margin: 0 auto;
}

.selected-slot-info {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

.selected-slot-info p {
    margin: 0.5rem 0;
    color: var(--secondary-color);
}

.selected-slot-info p:last-child {
    font-size: 1.2rem;
    font-weight: bold;
    color: #5dbbca;
}

/* Loading spinner */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--primary-color);
}

.loading::after {
    content: "⏳";
    font-size: 2rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Service Detail Page Styles */
.service-detail {
    padding: 120px 20px 80px;
    min-height: 100vh;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

.service-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.service-icon-large {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.service-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.service-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #5dbbca;
    font-weight: bold;
    font-size: 1.3rem;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.info-item p {
    color: #666;
    margin: 0;
}

.sidebar-cta {
    background: linear-gradient(135deg, #5dbbca, #4a9fb0);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.sidebar-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.sidebar-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.sidebar-cta .btn {
    background: white;
    color: #4a9fb0;
    font-weight: bold;
}

.sidebar-cta .btn:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
}

.related-services {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-service-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.related-service-link:hover {
    background: var(--light-bg);
    border-color: #5dbbca;
    transform: translateX(5px);
}

.related-icon {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .service-content {
        grid-template-columns: 1fr;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-icon-large {
        font-size: 4rem;
    }
}
