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

        :root {
            --header-bg: rgba(249, 249, 249, 1);
            --header-font: rgba(48, 48, 48, 1);
            --chat-bg: rgba(255, 255, 255, 1);
            --bot-bubble-bg: rgba(243, 243, 243, 1);
            --bot-font-color: #4F4F4F;
            --user-bubble-bg: rgba(48, 48, 48, 1);
            --user-font-color: #FFFFFF;
            --option-bubble-bg: rgba(48, 48, 48, 1);
            --option-font-color: #FFFFFF;
            --option-hover-bg: rgba(213, 44, 28, 1);
            --form-button-bg: rgba(213, 44, 28, 1);
            --form-button-font: #FFF;
            --form-button-hover-bg: rgba(48, 48, 48, 1);
            --error-color: #D32C1C;
        }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.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: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: #2c3e50;
}

h3 {
    font-size: 1.8rem;
    color: #34495e;
}

h4 {
    font-size: 1.3rem;
    color: #34495e;
}

p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo h2 {
    color: #e74c3c;
    margin: 0;
    font-size: 1.5rem;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #e74c3c;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.6));
    z-index: -1;
}

.hero-content {
    position: relative;
margin: 0 auto;
    z-index: 1;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8),
                 0 2px 4px rgba(0, 0, 0, 0.6),
                 0 8px 16px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8),
                 0 2px 4px rgba(0, 0, 0, 0.6),
                 0 8px 16px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    margin-bottom: 1rem;
}

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

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 250px;
    overflow: hidden;
}

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

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

.service-content {
    padding: 2.5rem 3rem 2.5rem 3rem;
}

.service-content h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.service-content ul {
    list-style: none;
    margin-top: 1.5rem;
}

.service-content li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Target Audience Section */
.target-audience {
    padding: 100px 0;
    background: white;
}

.target-audience h2 {
    text-align: center;
    margin-bottom: 1rem;
}

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

.audience-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.audience-icon {
    color: #e74c3c;
    margin-bottom: 1.5rem;
}

.audience-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.benefit-icon {
    background: #e74c3c;
    color: #fff;
    padding: .6rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.benefit-text h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.benefits-image2 {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefits-image {
    border-radius: 15px;
    overflow: hidden;
max-height: 75%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefits-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Statistics Section */
.statistics {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 1rem;
}

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

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

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

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

.contact-icon {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #e74c3c;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.trust-badge {
    height: 60px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.trust-badge:hover {
    opacity: 1;
}

/* Responsive Design */}

/* Service Subpage Styles */
.service-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}

.service-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.service-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.6));
    z-index: -1;
}

.service-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

.service-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {

 .service-hero-content p {
font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(152, 25, 13, 0.8);
    padding: 5px 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    border-radius: 0.5rem;
justify-self: center;
max-width: 100%;
}
    .service-hero-content h1 {
        font-size: 2.2rem;
        margin-top: 25vh;
        background-color: rgba(152, 25, 13, 0.8);
        padding: 5px 10px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
border-radius: 0.5rem;
justify-self: center;
max-width: 100%;
    }
    .service-hero {
        height: 30vh;
    }
}

@media (min-width: 769px) {

.service-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(152, 25, 13, 0.8);
    padding: 5px 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    border-radius: 0.5rem;
justify-self: center;
max-width: 50%;
}
    .service-hero-content h1 {
        font-size: 2.2rem;
        margin-top: 10rem;
        background-color: rgba(152, 25, 13, 0.8);
        padding: 5px 10px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
border-radius: 0.5rem;
justify-self: center;
max-width: 50%;
    }
    .service-hero {
        height: 25vh;
    }
}

.service-content {
    padding: 80px 0;
    background: white;
	margin-left: 1rem;
    margin-right: 1rem;
}

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

.service-main-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.service-main-content h3 {
    color: #e74c3c;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.service-list li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

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

.benefit-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

.benefit-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
}

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

.service-info-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.service-info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-info-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

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

.service-links li {
    margin-bottom: 0.5rem;
}

.service-links a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-links a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: #f8f9fa;
}

.faq h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: fit-content;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1rem;
    }
    
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .did-you-know-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .did-you-know-text h2 {
        font-size: 1.8rem;
    }
    
    .did-you-know-list li {
        font-size: 1.1rem;
    }

    .nav-menu {       position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .benefits-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

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

.service-card,
.audience-card,
.benefit-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Did You Know Section */
.did-you-know {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff5f5, #fef7f7);
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.did-you-know-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.did-you-know-icon {
    color: #f39c12;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.did-you-know-text h2 {
    color: #e74c3c;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.did-you-know-list {
    list-style: none;
    padding: 0;
}

.did-you-know-list li {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.did-you-know-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
    font-size: 1.3rem;
}

.did-you-know-list li strong {
    color: #e74c3c;
    font-weight: 600;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}



/* Vuosisopimus Page Styles */

/* Benefits Section */
.benefits-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

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

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    color: #fff;
    margin-bottom: 1rem;
	margin-top: 0.2rem;

}

.benefit-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* Services Included Section */
.services-included {
    padding: 4rem 0;
    background-color: white;
}

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

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.service-item:hover {
    border-color: #e74c3c;
}

.service-item-icon {
    color: #e74c3c;
    flex-shrink: 0;
}

.service-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-item p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
max-width: 100%;
}

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

.pricing-card.featured {
    border: 3px solid #e74c3c;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "SUOSITUIN";
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-left-radius: 8px;
}

.pricing-header-v {
    background: #e74c3c;
    color: white;
    padding: 2rem;
    text-align: center;
}

.pricing-header-v h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.pricing-header-v p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.pricing-body {
    padding: 2rem;
}

.price {
    text-align: center;
    margin-bottom: 1rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.new-price {
    color: #e74c3c;
    font-size: 2.5rem;
    font-weight: bold;
}

.price-period {
    color: #666;
    font-size: 1rem;
}

.price-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.savings {
    text-align: center;
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: #d5f4e6;
    border-radius: 5px;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 2rem;
}

.features li:last-child {
    border-bottom: none;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

.pricing-note {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.pricing-note p {
    margin: 0;
    color: #666;
    font-style: italic;
}

/* FAQ Section for Vuosisopimus */
.faq-section {
    padding: 4rem 0;
    background-color: white;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    margin-top: 3rem;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: fit-content;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Contact Section for Vuosisopimus */
.contact-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

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

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Responsive Design for Vuosisopimus */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .pricing-header-v {
        padding: 1.5rem;
    }
    
    .pricing-body {
        padding: 1.5rem;
    }
    
    .new-price {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .benefits-section,
    .services-included,
    .pricing-section,
    .faq-section,
    .contact-section {
        padding: 2rem 0;
    }
    
    .benefit-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .service-item {
        padding: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}

        #kouru-chat-bubble {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background-color: var(--option-hover-bg);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            z-index: 999;
            transition: transform 0.2s ease-out;
        }
        #kouru-chat-bubble:hover {
            transform: scale(1.1);
        }
        #kouru-chat-bubble svg {
            width: 32px;
            height: 32px;
            fill: white;
        }

        #kouru-chatbot-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 370px;
            max-width: 90vw;
            height: 550px;
            max-height: 80vh;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background-color: var(--chat-bg);
            z-index: 1000;
        }
        
        .kouru-hidden {
            display: none !important;
        }

        #kouru-chatbot-header {
            background-color: var(--header-bg);
            color: var(--header-font);
            padding: 12px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e0e0e0;
            font-weight: bold;
            flex-shrink: 0;
        }
        
        #kouru-chatbot-header .actions span {
            cursor: pointer;
            margin-left: 15px;
            font-size: 20px;
            font-weight: normal;
        }

        #kouru-chat-messages {
            flex-grow: 1;
            padding: 15px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }
        
        .kouru-message-wrapper {
            display: flex;
            margin-bottom: 12px;
            max-width: 90%;
        }

        .kouru-bot-message .kouru-message-content {
            background-color: var(--bot-bubble-bg);
            color: var(--bot-font-color);
            border-radius: 15px 15px 15px 0;
        }

.kouru-bot-message .kouru-message-content p {
    color: #000 !important;
    background-color: transparent !important;
}
        
        .kouru-bot-message {
            align-self: flex-start;
            align-items: flex-end;
        }

        .kouru-bot-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin-right: 10px;
            background-image: url('http://suomensammalpoisto.fi/images/303a0b38-c17b-4578-8903-ecff9455dfb3.png');
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
        }
        
        .kouru-message-content {
            padding: 10px 15px;
        }

        .kouru-message-content p {
color: #fff;
font-size: 0.9em;
            margin: 0;
            line-height: 1.4;
        }
        
        .kouru-message-content p:not(:last-child) {
            margin-bottom: 8px;
        }

        .kouru-message-timestamp {
            font-size: 0.75rem;
            color: #999;
            margin-top: 4px;
            text-align: left;
        }

        .kouru-user-message {
            align-self: flex-end;
        }

        .kouru-user-message .kouru-message-content {
            background-color: var(--user-bubble-bg);
            color: var(--user-font-color);
            border-radius: 15px 15px 0 15px;
            word-wrap: break-word;
        }
        
        .kouru-options-wrapper {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 8px;
            margin-bottom: 12px;
            padding-left: 40px; 
            align-self: flex-start;
            width: 100%;
            box-sizing: border-box;
        }

        .kouru-option-button {
            background-color: #2c3e50;
            color: var(--option-font-color);
            border: none;
            border-radius: 20px;
            padding: 12px 15px;
            cursor: pointer;
            text-align: left;
            font-size: 0.9rem;
            transition: background-color 0.2s ease;
            width: 100%;
        }

        .kouru-option-button:hover {
            background-color: var(--option-hover-bg);
        }
        
        .kouru-option-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            background-color: var(--option-bubble-bg) !important;
        }

        .kouru-form-wrapper {
             margin: 8px 0 12px 0;
             align-self: center;
             width: 100%;
        }
        .kouru-form {
            background-color: var(--bot-bubble-bg);
            padding: 15px;
            border-radius: 15px;
        }
        .kouru-form-field {
            margin-bottom: 10px;
            position: relative;
        }
        .kouru-form-field label {
            display: block;
            margin-bottom: 5px;
            font-size: 0.9rem;
        }
        .kouru-form-field input[type="text"],
        .kouru-form-field input[type="tel"],
        .kouru-form-field input[type="email"],
        .kouru-form-field textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
            transition: border-color 0.2s ease;
        }
        .kouru-form-field input.invalid,
        .kouru-form-field textarea.invalid {
            border-color: var(--error-color);
        }
        .kouru-form-field .kouru-checkbox-group label {
            display: flex;
            align-items: center;
            margin-bottom: 5px;
        }
        .kouru-form-field .kouru-checkbox-group input {
            margin-right: 10px;
        }
        .kouru-field-error {
            color: var(--error-color);
            font-size: 0.8rem;
            padding-top: 3px;
            display: none;
        }


        .kouru-form button {
            width: 100%;
            padding: 12px;
            margin-top: 10px;
            border: none;
            border-radius: 20px;
            background-color: var(--form-button-bg);
            color: var(--form-button-font);
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }
        .kouru-form button:hover {
            background-color: var(--form-button-hover-bg);
        }
        .kouru-form button:disabled {
            opacity: 0.6;
            cursor: wait;
        }
        
        .kouru-form-error {
            color: var(--error-color);
            font-size: 0.85rem;
            text-align: center;
            margin-top: 10px;
            display: none;
        }
        
        .kouru-card {
             margin: 0 0 12px 40px;
             align-self: flex-start;
             background-color: var(--bot-bubble-bg);
             border-radius: 15px;
             padding: 15px;
             line-height: 1.5;
        }
.pricing-container {
    display: flex;
    overflow-x: auto; /* Scrollbar only for pricing cards */
    gap: 15px;
margin-right: 20px;
    padding-bottom: 10px;
    max-width: 100%; /* Ensure it fits within parent */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

.pricing-card {
    min-width: 250px;
    min-height: 250px;
max-width: 100%;
    background-color: white;
    border-radius: 8px;
    overflow: hidden; /* Prevent individual card overflow */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* Prevent cards from shrinking */
}

/* Ensure parent container (#kouru-chat-messages) doesn't add extra scrollbars */
#kouru-chat-messages {
    overflow-y: auto; /* Only vertical scroll for chat messages */
    overflow-x: hidden; /* Prevent horizontal scroll on parent */
    flex-grow: 1;
    padding: 15px;
}

/* Optional: Adjust wrapper to avoid layout issues */
.kouru-card {
    margin: 0 0 12px 40px;
    align-self: flex-start;
    background-color: var(--bot-bubble-bg);
    border-radius: 15px;
    padding: 15px;
    line-height: 1.5;
    width: 100%; /* Ensure card fits container */
    box-sizing: border-box;
}

.pricing-header {
    background-color: #001f3f;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
}

.pricing-price {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    padding: 20px 0 0 0;
}

.pricing-vat {
    text-align: center;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.pricing-description {
    padding: 0 10px 10px 10px;
    font-size: 0.8em;
    text-align: center;
}

.pricing-discount {
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
    padding: 0 10px 10px 10px;
}
.pricing-discount2 {
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
    padding: 50px 0 0 0;
}

/* Palvelut Pähkinänkuoressa -osion tyylit */
.summary-section {
    padding: 100px 0;
    background-color: #f8f9fa; /* TÄMÄ ASETTAA KOKO SIVUOSION TAUSTAVÄRIN */
}

.summary-header {
    text-align: center;
    margin-bottom: 4rem;
}

.summary-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.summary-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.6;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.summary-card {
    background: #ffffff; /* Yksittäiset kortit ovat valkoisia, jotta ne erottuvat taustasta */
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border-bottom: 5px solid #e74c3c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.summary-icon {
    color: #e74c3c;
    margin-bottom: 1.5rem;
}

.summary-card h4 {
    color: #34495e;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.summary-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.summary-solution {
    margin-top: 4rem;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.25);
}

.solution-icon {
    flex-shrink: 0;
    color: #27ae60;
}

.solution-text h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.solution-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Responsiivisuus */
@media (max-width: 992px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .summary-header h2 {
        font-size: 2rem;
    }
    .summary-header p {
        font-size: 1.1rem;
    }
    .summary-solution {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }
    .solution-text h3 {
        font-size: 1.5rem;
    }
}

/* --- Oppaan ja salasanasuojauksen tyylit --- */

/* Salasanasuojaus */
#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.95); /* Käytetään olemassa olevaa väripalettia */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

#password-box {
    background: var(--chat-bg, #fff);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

#password-box h3 {
    color: var(--header-font, #333);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

#password-box p {
    color: #555;
    margin-bottom: 1.5rem;
}

#password-box .form-group {
    margin-bottom: 1rem;
}

#password-box input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}

#password-box input[type="password"]:focus {
    outline: none;
    border-color: #e74c3c;
}

#password-box .btn {
    width: 100%;
}

#password-error {
    color: var(--error-color, #D32C1C);
    margin-top: 1rem;
    margin-bottom: 0;
    font-weight: 600;
    display: none; /* Piilotettu oletuksena */
}

/* Opassivun tyylit */
.guide-section {
    padding: 120px 0 80px 0; /* Lisää tilaa navigaatiopalkin alle */
    background-color: #fff;
}

.guide-intro {
    background-color: #f8f9fa;
    border-left: 5px solid #e74c3c;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
    border-radius: 0 8px 8px 0;
}

.guide-steps {
    list-style: none;
    padding-left: 0;
    margin-top: 3rem;
}

.guide-steps li {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.guide-steps h4 {
    color: #e74c3c;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.guide-steps p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #555;
}

.video-placeholder {
    background-color: #34495e;
    border: 2px dashed #7f8c8d;
    border-radius: 8px;
    padding: 3rem 1rem;
    margin-top: 1.5rem;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- Responsiivisten videoiden tyylit --- */

.video-container {
  margin-top: 1.5rem; /* Lisää tilaa videon ja yllä olevan tekstin väliin */
  margin-bottom: 1.5rem; /* Lisää tilaa videon ja alla olevan tekstin väliin */
  max-width: 800px; /* Videon maksimileveys, ei veny turhan suureksi isoilla näytöillä */
  margin-left: auto;
  margin-right: auto;
  background-color: #f0f0f0; /* Vaalea taustaväri latauksen ajaksi */
  border-radius: 8px; /* Pyöristetyt kulmat */
  overflow: hidden; /* Varmistaa, että video pysyy pyöristettyjen kulmien sisällä */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Kevyt varjostus */
}

.video-container video {
  display: block; /* Poistaa videon alle jäävän pienen tyhjän tilan */
  width: 100%; /* Varmistaa, että video täyttää säiliönsä leveyden */
  height: auto; /* Säilyttää videon kuvasuhteen leveyden muuttuessa */
}

/* Hide Google reCAPTCHA v3 badge (allowed when the required disclosure text is shown) */
.grecaptcha-badge {
  visibility: hidden;   /* älä käytä display:none -> visibility täyttää ehdon */
}

.form-legal {
  margin-top: 1rem;
  font-size: .7rem;
  line-height: 1.4;
  color: #555;
}
.form-legal a { text-decoration: underline; color: #555; }
