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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #4a4a4a;
    background-color: #f7f5f3;
    scroll-behavior: smooth;
}

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

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.nav-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #6b5b73;
    text-decoration: none;
}

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

.nav-item {
    margin: 0;
}

.nav-link {
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #6b5b73;
    background-color: rgba(107, 91, 115, 0.1);
}

.nav-link.active {
    color: #6b5b73;
    background-color: rgba(107, 91, 115, 0.15);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #6b5b73;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        gap: 0;
    }

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

    .nav-item {
        margin: 0.5rem 0;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    color: #6b5b73;
}

h2 {
    font-size: 2rem;
    color: #6b5b73;
}

h3 {
    font-size: 1.5rem;
    color: #6b5b73;
}

p {
    margin-bottom: 1rem;
    color: #5a5a5a;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #7a8ca8;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(122, 140, 168, 0.3);
}

.cta-button:hover {
    background-color: #6b7d95;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 140, 168, 0.4);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6b8db5 0%, #d4c4a8 50%, #c8a882 100%);
    color: white;
    padding: 140px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(107, 141, 181, 0.1) 0%, rgba(212, 196, 168, 0.2) 50%, rgba(200, 168, 130, 0.1) 100%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.business-name {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #f8f9fa;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ecf0f1;
    line-height: 1.8;
}

.hero-cta {
    background-color: #8b6f47;
    font-size: 1.2rem;
    padding: 15px 40px;
    box-shadow: 0 5px 15px rgba(139, 111, 71, 0.5);
}

.hero-cta:hover {
    background-color: #7a5f3a;
    box-shadow: 0 7px 20px rgba(139, 111, 71, 0.6);
}

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

.hero-img {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(107, 141, 181, 0.4);
    object-fit: cover;
    object-position: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Booking Section */
.booking-section {
    background-color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.section-title {
    margin-bottom: 1.5rem;
    color: #6b5b73;
    text-align: center;
}

.booking-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.booking-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.booking-option {
    background-color: #faf9f7;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8e0d6;
}

.booking-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 115, 85, 0.2);
}

.booking-option h3 {
    color: #6b5b73;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.booking-option p {
    margin-bottom: 2rem;
    color: #5a5a5a;
}

.booking-cta {
    background-color: #7a8ca8;
    font-size: 1.1rem;
    padding: 12px 30px;
    width: 100%;
}

.booking-cta:hover {
    background-color: #6b7d95;
}

/* Approach Section */
.approach-section {
    background: linear-gradient(135deg, #f7f4f0 0%, #e8ddd4 100%);
    padding: 80px 0;
    position: relative;
}

.approach-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(107, 91, 115, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

.therapist-img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(107, 91, 115, 0.3);
    max-height: 400px;
    object-fit: cover;
    border: 2px solid rgba(107, 91, 115, 0.1);
}

.approach-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.approach-cta {
    background-color: #8b7a6b;
}

.approach-cta:hover {
    background-color: #7a6b5c;
}

/* Background Section */
.background-section {
    background-color: #ffffff;
    padding: 80px 0;
}

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

.background-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #6b5b73;
}

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

.expertise-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.expertise-list li {
    background-color: #8b7355;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.location-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    justify-content: center;
}

.secondary-button {
    background-color: #a89584 !important;
}

.secondary-button:hover {
    background-color: #968570 !important;
}

.map-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 480px) {
    .location-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .location-actions .cta-button {
        width: 100%;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.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: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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


.submit-button {
    width: 100%;
    margin-top: 1rem;
    background-color: #7a8ca8;
    font-size: 1.1rem;
    padding: 15px;
}

.submit-button:hover {
    background-color: #6b7d95;
}

.submit-button:disabled {
    background-color: #c4b8a8;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #6b5b73;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-section h4 {
    color: #e8f5e8;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-section address {
    font-style: normal;
    line-height: 1.5;
    color: #ecf0f1;
}

.contact-section p {
    margin: 0;
    line-height: 1.6;
}

.contact-section a {
    color: #e8f5e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-section a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: #ecf0f1;
}

.website-credit {
    font-size: 0.8rem;
    opacity: 0.8;
    font-style: italic;
    margin-top: 10px !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .business-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .booking-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .approach-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .expertise-list {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .business-name {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .booking-section,
    .approach-section,
    .background-section {
        padding: 50px 0;
    }
}

/* Booking Form Specific Styles */
.booking-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    /* Ensure scrollbar is visible */
    scrollbar-width: thin;
    scrollbar-color: #6b5b73 #f1f1f1;
    /* Add padding to ensure content isn't cut off */
    padding-bottom: 20px;
}

/* Webkit scrollbar styling for better visibility */
.booking-modal::-webkit-scrollbar {
    width: 8px;
}

.booking-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.booking-modal::-webkit-scrollbar-thumb {
    background: #6b5b73;
    border-radius: 4px;
}

.booking-modal::-webkit-scrollbar-thumb:hover {
    background: #5a4a63;
}

.hipaa-notice {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    color: #2e7d32;
    font-weight: 500;
    text-align: center;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    border-left: 4px solid #6b5b73;
}

.form-section h4 {
    color: #6b5b73;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

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

.form-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #4a4a4a;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6b5b73;
    box-shadow: 0 0 0 3px rgba(107, 91, 115, 0.1);
}

.form-group input:required:invalid {
    border-color: #e57373;
}

.form-group input:required:valid {
    border-color: #81c784;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.4;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    min-width: 16px;
    height: 16px;
    margin: 3px 0 0 0;
    flex-shrink: 0;
    cursor: pointer;
}

.consent-section {
    background: #f0f8ff;
    border-left-color: #2196f3;
    /* Make consent section more prominent */
    border: 2px solid #2196f3;
    margin: 30px 0;
    padding: 20px;
    position: relative;
    /* Ensure it's always visible */
    min-height: 200px;
}

.consent-section::before {
    content: "⚠️ Required Agreements";
    font-weight: bold;
    color: #2196f3;
    background: #fff;
    padding: 5px 10px;
    position: absolute;
    top: -12px;
    left: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.consent-section .checkbox-label {
    margin-bottom: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e3f2fd;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force third checkbox to be visible */
.consent-section .form-group:nth-child(4) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #fff3cd !important;
    border: 2px solid #ffc107 !important;
}

/* Force the actual checkbox input to be visible */
.consent-section input[type="checkbox"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
}

/* AGGRESSIVE FIX: Force privacyConsent checkbox to be visible and focusable */
#privacyConsent {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    position: relative !important;
    z-index: 9999 !important;
    background: red !important; /* Debug: make it super obvious */
    border: 3px solid blue !important;
    pointer-events: auto !important;
    transform: none !important;
    clip: none !important;
    overflow: visible !important;
}

/* Force the parent label to be visible too */
label[for="privacyConsent"], 
input#privacyConsent + *,
#privacyConsent ~ * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#insuranceFields {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.submit-button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.form-message.error {
    background: #ffebee;
    color: #d32f2f;
    border: 2px solid #f44336;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
    display: block;
}

.form-message.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 2px solid #4caf50;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
    display: block;
}

/* Responsive adjustments for booking form */
@media (max-width: 768px) {
    .booking-modal {
        max-width: 95%;
        margin: 5% auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-contact {
        gap: 20px;
    }
    
    /* Adjust hero section padding for mobile nav */
    .hero-section {
        padding: 140px 0 60px 0;
    }
    
    .website-credit {
        text-align: center;
        margin-top: 15px !important;
    }
}

/* Form field error highlighting */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border: 2px solid #f44336 !important;
    background-color: #ffebee !important;
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.3) !important;
}

.form-group.error label {
    color: #d32f2f !important;
    font-weight: 600 !important;
}

/* Checkbox error highlighting */
.form-group.error .checkbox-label {
    background-color: #ffebee !important;
    border: 2px solid #f44336 !important;
    border-radius: 6px !important;
    padding: 12px !important;
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.3) !important;
}

/* Date of Birth dropdowns */
.date-birth-group {
    display: flex;
    gap: 10px;
}

.date-birth-group select {
    flex: 1;
}

/* Optional section styling */
.optional-section {
    background: #f8f9fa !important;
    border-left-color: #6c757d !important;
    border: 2px dashed #dee2e6 !important;
    margin-top: 30px !important;
}

.optional-section h4 {
    color: #6c757d !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.optional-section h4::before {
    content: "ℹ️";
    font-size: 16px;
}

.section-description {
    color: #6c757d !important;
    font-style: italic;
    margin: -10px 0 20px 0 !important;
    font-size: 14px;
    line-height: 1.4;
}

/* Auto-save indicator */
.auto-save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.auto-save-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.auto-save-indicator::before {
    content: "💾";
    margin-right: 4px;
}