:root {
    --primary-green: #235c36;
    --primary-green-hover: #1c4b2c;
    --dark-green: #152219;
    --text-dark: #111827;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background: linear-gradient(135deg, #f7fdf9 0%, #eefbf3 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header */
.header {
    background-color: var(--bg-light);
    padding: 15px 40px;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-amp {
    font-weight: 400;
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
}

.language-switcher span {
    cursor: pointer;
    transition: color 0.2s;
}

.language-switcher span:hover {
    color: var(--text-dark);
}

.language-switcher span.active {
    color: var(--text-dark);
    font-weight: 600;
}

.header-wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-green);
    color: white;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.header-wa-icon svg {
    width: 18px;
    height: 18px;
}

.header-wa-icon:hover {
    background-color: var(--primary-green-hover);
}

/* Hero Section */
.hero {
    position: relative;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 60%, rgba(255,255,255,1) 100%), url('../images/bg.png');
    background-size: cover;
    background-position: center 30%;
    padding: 80px 20px 140px; 
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #000;
}

.hero p {
    font-size: 18px;
    color: #374151;
    margin-bottom: 30px;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

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

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

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Service Cards */
.service-cards-container {
    max-width: 900px;
    margin: -80px auto 0; /* Pulls cards up into the hero image */
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 20px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.service-card.active {
    border-color: var(--primary-green);
    background-color: #f0fdf4; /* Light green tint */
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Estimation Section */
.estimation-section {
    padding: 80px 20px;
    background-color: transparent;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.calc-selectors {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.calc-group h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.calc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.calc-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.calc-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.calc-btn.active {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

/* Result Box */
.result-box {
    background: linear-gradient(145deg, #1f3325, #111b14);
    color: white;
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(21, 34, 25, 0.2);
}

.result-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a7f3d0;
    margin-bottom: 15px;
}

.result-price {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
}

.price-suffix {
    font-size: 16px;
    font-weight: 500;
    color: #9ca3af;
}

.result-desc {
    font-size: 12px;
    color: #d1d5db;
    margin-bottom: 25px;
    line-height: 1.5;
}

.result-box .btn {
    width: 100%;
}

/* Form Card */
.form-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-col-full {
    grid-column: span 2;
}

.form-col-half {
    grid-column: span 1;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.3s;
    background-color: #fcfcfc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: white;
}

.form-control.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.error-msg.visible {
    display: block;
}

/* Trust Row */
.trust-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding-top: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.trust-icon {
    width: 22px;
    height: 22px;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer .logo {
    font-size: 18px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-dark);
}

/* WhatsApp Float */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}
.wa-float:hover {
    transform: scale(1.1);
}
.wa-float svg {
    width: 28px;
    height: 28px;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

/* Enhancements: Pulsing and Loading */
@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(35, 92, 54, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(35, 92, 54, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(35, 92, 54, 0); }
}

.calc-options:not(.has-selection) .calc-btn {
    animation: pulse-soft 2s infinite;
}

.btn-submit.loading {
    opacity: 0.8;
    cursor: wait;
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Decorative Bubbles */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.5);
    animation: rise 15s infinite ease-in;
    opacity: 0;
}

.bubble:nth-child(1) { width: 40px; height: 40px; left: 10%; animation-duration: 12s; }
.bubble:nth-child(2) { width: 20px; height: 20px; left: 20%; animation-duration: 8s; animation-delay: 1s; }
.bubble:nth-child(3) { width: 50px; height: 50px; left: 35%; animation-duration: 15s; animation-delay: 4s; }
.bubble:nth-child(4) { width: 30px; height: 30px; left: 50%; animation-duration: 10s; animation-delay: 2s; }
.bubble:nth-child(5) { width: 60px; height: 60px; left: 65%; animation-duration: 18s; animation-delay: 0s; }
.bubble:nth-child(6) { width: 25px; height: 25px; left: 80%; animation-duration: 9s; animation-delay: 3s; }
.bubble:nth-child(7) { width: 45px; height: 45px; left: 90%; animation-duration: 14s; animation-delay: 5s; }
.bubble:nth-child(8) { width: 15px; height: 15px; left: 5%; animation-duration: 7s; animation-delay: 6s; }

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateX(20px);
    }
    90% {
        opacity: 0;
    }
    100% {
        bottom: 1080px;
        transform: translateX(-20px);
        opacity: 0;
    }
}

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

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .hero {
        padding: 50px 15px 140px; /* Adjust padding for mobile but keep bottom space */
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .service-cards-container {
        grid-template-columns: 1fr;
        margin-top: -80px; /* Keep overlap on mobile */
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .estimation-section {
        padding: 60px 15px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .form-card {
        padding: 25px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-col-half, .form-col-full {
        grid-column: span 1;
    }
    
    .trust-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding-left: 10px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .wa-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}