/* Base Styles and Variables */
:root {
    --primary-color: #2c5530;
    --secondary-color: #7fa663;
    --accent-color: #e8b04b;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #fafaf8;
    --bg-white: #ffffff;
    --border-light: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

/* Hero Section - Simplified */
.contact-hero {
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(127, 166, 99, 0.05) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.organic-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #7fa663, #e8b04b);
    top: -100px;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #2c5530, #7fa663);
    bottom: -50px;
    left: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(-30px, -10px) scale(1.02); }
}

.hero-content-centered {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(127, 166, 99, 0.1);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(127, 166, 99, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-dark);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Contact Section - Split Layout */
.contact-main-section {
    padding: 80px 0 100px;
    background: var(--bg-white);
    position: relative;
}

/* Section Intro - Above the split columns */
.section-intro {
    margin-bottom: 40px;
}

.content-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.content-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch; /* Make both columns same height */
    grid-auto-rows: 1fr; /* Ensure equal row heights */
    position: relative;
}

/* Left Column - Content */
.contact-content {
    padding-right: 20px;
    display: flex;
    flex-direction: column;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
    flex: 1; /* Allow cards to expand */
}

.service-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    min-height: 120px;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.service-card.active {
    border-color: var(--primary-color);
    background: rgba(127, 166, 99, 0.05);
}

.card-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    padding: 12px;
    background: rgba(127, 166, 99, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}

.card-content h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Contact Info Section */
.contact-info-section {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-top: auto; /* Push to bottom of container */
}

.contact-info-section h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.info-item svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* Right Column - Form */
.contact-form-column {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-wrapper-standard {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.form-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-shrink: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-light);
}

/* Form Styles */
.standard-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px; /* Space for scrollbar */
    margin-right: -10px; /* Compensate for padding */
}

/* Custom scrollbar for form */
.standard-form::-webkit-scrollbar {
    width: 6px;
}

.standard-form::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.standard-form::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.standard-form::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Dynamic Field Groups */
.dynamic-field-group {
    transition: opacity 0.15s ease-out;
    opacity: 1;
}

#dynamic-fields {
    min-height: 0; /* Prevent container from expanding */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.field-note {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-top: 4px;
}

/* Radio and Checkbox Styles */
.radio-group-inline {
    display: flex;
    gap: 20px;
}

.radio-inline {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-inline input {
    margin-right: 6px;
    accent-color: var(--primary-color);
}

.radio-inline span {
    font-size: 0.875rem;
    color: var(--text-dark);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.checkbox-item input {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

/* Submit Button */
.btn-submit-standard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    margin-top: 20px;
    margin-bottom: 10px; /* Ensure some space at bottom */
    width: 100%; /* Full width for better visibility */
}

.btn-submit-standard:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit-standard:active {
    transform: translateY(0);
}

.btn-submit-standard svg {
    transition: transform 0.3s ease;
}

.btn-submit-standard:hover svg {
    transform: translateX(4px);
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title-center {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: rgba(127, 166, 99, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.benefit-item p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-split {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-form-column {
        position: static;
    }

    .contact-content {
        padding-right: 0;
    }

    .form-wrapper-standard {
        height: auto; /* Remove fixed height on tablet/mobile */
        flex: initial;
    }

    .standard-form {
        overflow-y: visible;
        padding-right: 0;
        margin-right: 0;
    }

    .section-intro {
        text-align: center;
        margin-bottom: 50px;
    }

    .content-description {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-wrapper-standard {
        padding: 30px 20px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .card-content {
        align-items: center;
    }

    .service-card:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .section-title-center {
        font-size: 1.75rem;
    }

    .form-wrapper-standard {
        padding: 25px 15px;
    }
}