/* ============= */
/* BASE STYLES */
/* ============= */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--earth-light);
}

:root {
    --earth-green: #3A7D44;
    --earth-brown: #6B4D2E;
    --earth-tan: #DDB771;
    --earth-blue: #2A628F;
    --earth-light: #F5F5F5;
}

/* ============= */
/* LAYOUT STYLES */
/* ============= */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

/* ============= */
/* NAVIGATION */
/* ============= */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.6s ease;
    transform: translateY(0);
}

.nav-overlay {
    background: linear-gradient(90deg, rgba(58,125,68,0) 0%, rgba(42,98,143,0) 100%);
}

.rounded-nav {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: var(--earth-tan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--earth-tan);
}

.scrolled-nav {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-hidden {
    transform: translateY(-100%);
}

/* ============= */
/* HERO SECTION */
/* ============= */

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content-container {
    padding-top: 80px;
}

.banner-overlay {
    /*background: linear-gradient(90deg, rgba(58,125,68,0.85) 0%, rgba(42,98,143,0.85) 100%);*/
    background-color: rgba(0, 0, 0, 0.3) !important;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
    white-space: nowrap;
}

.hero-button:hover {
    opacity: 0.9;
}

/* ============= */
/* MOBILE MENU */
/* ============= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: all 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-header {
    padding: 1.5rem;
    background: linear-gradient(90deg, rgba(58,125,68,0.9) 0%, rgba(42,98,143,0.9) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-content {
    padding: 1.5rem;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu-link.active {
    color: var(--earth-blue);
    font-weight: 600;
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-contact {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* ============= */
/* EMPLOYEE CARDS */
/* ============= */
.employee-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.employee-avatar {
    width: 8rem;
    height: 8rem;
    background-color: var(--earth-tan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============= */
/* FORM STYLES */
/* ============= */
.form-container {
    max-width: 56rem;
    margin: 0 auto;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-header {
    background-color: var(--earth-blue);
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-content {
    padding: 2rem;
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--earth-brown);
    margin-bottom: 1.5rem;
}

.form-input-container {
    position: relative;
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--earth-blue);
    box-shadow: 0 0 0 3px rgba(42, 98, 143, 0.1);
}

.form-textarea {
    min-height: 8rem;
}

.form-input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.form-submit-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--earth-blue);
    color: white;
    border: none;
}

.form-submit-btn:hover {
    background: #1e4b75;
}

/* ============= */
/* SURVEY STYLES */
/* ============= */
.survey-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.survey-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--earth-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.survey-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.survey-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--earth-blue);
    margin-bottom: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
}

.radio-option input {
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
}

.radio-option label {
    font-size: 1.1rem;
    color: #333;
}

.form-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.survey-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.survey-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.survey-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-back {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.btn-back:hover:not(:disabled) {
    background: #e5e5e5;
}

.btn-next {
    background: var(--earth-green);
    color: white;
    border: none;
}

.btn-next:hover:not(:disabled) {
    background: #2e6b37;
}

.btn-submit {
    background: var(--earth-blue);
    color: white;
    border: none;
}

.btn-submit:hover:not(:disabled) {
    background: #1e4b75;
}

.progress-bar {
    height: 0.5rem;
    background: #e5e5e5;
    border-radius: 0.25rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--earth-green), var(--earth-blue));
    transition: width 0.3s ease;
}

/* ============= */
/* COMPLETION SCREEN */
/* ============= */
.completion-icon {
    font-size: 4rem;
    color: var(--earth-green);
    margin-bottom: 1.5rem;
}

.completion-message {
    font-size: 1.5rem;
    color: var(--earth-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.required-field::after {
    content: " *";
    color: #e53e3e;
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.loading-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--earth-blue);
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

.estimate-result {
    font-size: 2rem;
    font-weight: bold;
    color: var(--earth-green);
    margin: 1.5rem 0;
}

.price-breakdown {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid var(--earth-green);
}

.price-breakdown-title {
    font-weight: 600;
    color: var(--earth-blue);
    margin-bottom: 1rem;
}

.price-breakdown-item {
    margin-bottom: 0.5rem;
}

.why-price-btn {
    background: var(--earth-tan);
    color: var(--earth-brown);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.why-price-btn:hover {
    background: #d1a866;
}

/* ============= */
/* CALENDAR STYLES */
/* ============= */
.calendar-container {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    overflow-x: auto;
}

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

.calendar-month-year {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--earth-blue);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    min-width: 320px;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 0.5rem;
    color: var(--earth-brown);
}

.calendar-day {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
}

.calendar-day:hover {
    background-color: var(--earth-tan);
    color: white;
}

.calendar-day.selected {
    background-color: var(--earth-blue);
    color: white;
    border-color: var(--earth-blue);
}

.calendar-day.today {
    background-color: var(--earth-light);
    font-weight: bold;
}

.calendar-day.disabled {
    color: #cbd5e0;
    cursor: not-allowed;
    background-color: #f7fafc;
}

.calendar-day-number {
    font-size: 1rem;
    font-weight: bold;
}

.calendar-day-name {
    font-size: 0.75rem;
    color: #718096;
}

/* ============= */
/* FOOTER STYLES */
/* ============= */
footer {
    background-color: var(--earth-green) !important;
    color: white;
    padding: 3rem 0;
}

.footer-heading {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: white;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--earth-tan);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-link {
    color: var(--earth-light);
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: var(--earth-tan);
}

.footer-copyright {
    border-top: 1px solid var(--earth-blue);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

/* ============= */
/* UTILITY CLASSES */
/* ============= */
.hidden {
    display: none;
}

.overflow-hidden {
    overflow: hidden;
}

/* ============= */
/* RESPONSIVE STYLES */
/* ============= */
@media (max-width: 768px) {
    .hero-content {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
        margin-left: 0%;
    }
    
    .container.px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .calendar-container {
        padding: 0.5rem;
        margin: 0 -0.5rem;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-day {
        padding: 0.25rem;
        min-height: 40px;
    }
    
    .calendar-day-number {
        font-size: 0.875rem;
    }
    
    .calendar-day-name {
        font-size: 0.625rem;
    }
    
    .calendar-month-year {
        font-size: 1rem;
    }
    
    input.form-input, textarea.form-input {
        font-size: 16px;
    }
    
    .nav-container .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-menu-header {
        padding: 1rem;
    }
    
    .mobile-menu-content {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-button {
        margin-bottom: 1rem;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    
    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-left: 0%;
    }
}

@media (max-width: 400px) {
    .calendar-day-number {
        font-size: 0.75rem;
    }
    
    .calendar-day-name {
        display: none;
    }
    
    .survey-question {
        font-size: 1.2rem;
    }
    
    .survey-card {
        padding: 1.5rem;
    }
}

/* Safari-specific fixes */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        input:-webkit-autofill {
            -webkit-box-shadow: 0 0 0 1000px white inset !important;
        }
        
        button, input[type="button"], input[type="submit"] {
            -webkit-appearance: none;
        }
    }
}
.hero-container {
    position: relative;
    overflow: hidden;
}
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-right: 5%;
    margin-left: 10%;
}
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(90deg, rgba(58,125,68,0.85) 0%, rgba(42,98,143,0.85) 100%);*/
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
    .hero-content {
        align-items: center;
        padding-right: 0;
        text-align: center;
        margin-left: 0%;
    }
}
.past-date {
    opacity: 0.5;
    cursor: not-allowed;
}

.past-date:hover {
    background-color: transparent;
}

.other-month {
    opacity: 0.5;
}

.today {
    background-color: #ffcc00;
    border-radius: 50%;
}

.calendar-day.selected {
    background-color: #4caf50;
    color: white;
    border-radius: 50%;
}