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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-logo h1 {
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: visible;
}

.nav-logo img {
    max-height: 130px;
    width: auto;
    object-fit: contain;
    display: block;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    background-color: #f7fafc;
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
/* Start of Selection */
.hero {
    background: url('/img/ocean_valley_wildflowers.png') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 120px 20px 80px;
    margin-top: 70px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}
/* End of Selection */

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #667eea;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero2 {
    /* Animation will work regardless of background image, but make sure the element is present in the DOM and not empty */
    background: url('/img/ocean_valley_wildflowers.png') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 220px 20px 180px;
    margin-top: 70px;
    position: relative;
}


/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
}

.bg-light {
    background-color: #f7fafc;
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.faq-answer {
    color: #666;
    line-height: 1.7;
}

/* About Page Specific Styles */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
    align-items: stretch;
}


.about-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
    flex-shrink: 0;
}

.about-card p,
.about-card ul {
    flex-grow: 1;
    margin-bottom: 0;
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.fees-table th,
.fees-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.fees-table th {
    background-color: #667eea;
    color: white;
    font-weight: 600;
}

.fees-table tr:hover {
    background-color: #f7fafc;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

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

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

/* Checkbox styling */
.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label .checkmark {
    display: none;
}

/* Clinicians page specific styles */
.clinician-photo {
    text-align: center;
    margin-bottom: 20px;
}

.clinician-photo img {
    height: 240px;
}

.clinician-name {
    margin-bottom: 8px;
}

.clinician-title {
    margin-bottom: 8px;
    font-weight: normal;
    font-size: 1.2em;
    text-align: center;
    margin-top: 0;
}

.clinician-quote {
    text-align: center;
    margin-top: 0;
    font-style: italic;
}

.education-list {
    list-style: disc;
    padding-left: 1.5em;
    text-align: left;
    margin: 0;
}

.education-item {
    margin-top: 0.5em;
}

.education-institution {
    color: #666;
}

/* Standardize all paragraph and list text colors */
p,
li,
.about-card p,
.education-institution,
.education-list li,
.contact-card p,
.faq-answer,
.subheading,
.content-block p,
.about-card ul li,
.about-card ol li,
.contact-info p,
.footer-section p,
.footer-section li {
    color: #666;
}

/* Ensure headings maintain their original colors */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.about-card h3,
.contact-card h3,
.faq-question,
.footer-section h3,
.footer-section h4 {
    color: inherit;
}

/* Additional text elements that should use standardized color */
.form-group label,
.checkbox-label,
.about-grid ul li,
.about-grid ol li,
.service-card p,
.service-card li,
.hero2 p,
.hero2 li {
    color: #666;
}

/* Ensure navigation and interactive elements maintain their colors */
.nav-link,
.submit-btn,
button,
a {
    color: inherit;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Contact Info Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.contact-card p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

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

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

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

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

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

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}

/* Admin Dashboard Styles */
.admin-container {
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 20px;
}

.referral-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.referral-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.referral-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
}

.referral-date {
    color: #718096;
    font-size: 0.9rem;
}

.referral-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fef5e7;
    color: #d69e2e;
}

.status-contacted {
    background-color: #e6fffa;
    color: #319795;
}

.status-scheduled {
    background-color: #f0fff4;
    color: #38a169;
}

.referral-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex items from overflowing */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.detail-label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 3px;
    white-space: nowrap;
}

.detail-value {
    color: #2d3748;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
}

.referral-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5a67d8;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
}

.no-referrals {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.flash-success {
    background-color: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.flash-error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.flash-info {
    background-color: #ebf8ff;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

/* 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);
    backdrop-filter: blur(4px);
}

/* Ensure modal is visible when displayed */
.modal[style*="display: block"] {
    display: block !important;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #e2e8f0;
    color: #2d3748;
}

.modal-body {
    padding: 20px;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.modal-detail-item {
    display: flex;
    flex-direction: column;
}

.modal-detail-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-detail-value {
    color: #2d3748;
    font-size: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.modal-concern {
    grid-column: 1 / -1;
}

.modal-concern .modal-detail-value {
    background-color: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    white-space: pre-wrap;
}

.modal-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-timestamp {
    color: #718096;
    font-size: 0.9rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background-color: #f7fafc;
    border-radius: 0 0 12px 12px;
}

.delete-warning {
    color: #e53e3e;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 10px;
    padding: 10px;
    background-color: #fed7d7;
    border-radius: 6px;
    border-left: 4px solid #e53e3e;
}

/* Review Filter Toggle Styles */
.review-filter-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 30px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 600px;
    text-align: center;
}

.review-filter-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f7fafc;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.filter-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    color: #4a5568;
    font-size: 0.9rem;
}

.stat-item strong {
    color: #2d3748;
    font-weight: 600;
}

/* Referral Card Reviewed/Not Reviewed Styles */
.referral-card.not-reviewed {
    border-left: 4px solid #f56565;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.referral-card.reviewed {
    border-left: 4px solid #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.new-indicator {
    background: #f56565;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.reviewed-status {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.reviewed-status.reviewed {
    background: #c6f6d5;
    color: #22543d;
}

.reviewed-status.not-reviewed {
    background: #fed7d7;
    color: #742a2a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
    }

    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        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;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 20px;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        color: white;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .contact-info {
        grid-template-columns: 1fr;
    }
    
    /* Admin responsive adjustments */
    .referral-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .referral-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Review filter responsive adjustments */
    .review-filter-toggle {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .filter-stats {
        justify-content: center;
        text-align: center;
    }
    
    .status-container {
        align-items: flex-start;
        gap: 5px;
    }
    
    /* Mobile logo adjustments */
    .nav-logo img {
        max-height: 110px !important;
    }
    
    /* Admin container mobile adjustments */
    .admin-container {
        margin-top: 80px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 15px 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .service-card,
    .about-card,
    .contact-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}
