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

:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-secondary: #f8fafc;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    --color-white: #ffffff;
    --gradient-warm: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #e8b4f7 100%);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    white-space: nowrap;
}

.nav-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.nav {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.nav-cta {
    order: 10;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius);
    transition: all 0.2s;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: linear-gradient(white, white),
                linear-gradient(135deg,
                    rgba(99, 102, 241, 0.3) 0%,
                    rgba(16, 185, 129, 0.3) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 2px solid transparent;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

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

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

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

/* Button text variants */
.btn-text-short {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('/static/img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-2xl) 0;
    margin-top: 70px;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text);
}

.section-logo {
    display: block;
    width: 80px;
    height: auto;
    margin: 0 auto var(--spacing-md);
    opacity: 0.8;
}

.hero-logo {
    width: 120px;
    margin-bottom: var(--spacing-lg);
}

/* Testimonials */
.testimonials {
    background-color: var(--color-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.testimonial-card {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.05) 0%,
        rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid transparent;
    background-image:
        linear-gradient(white, white),
        linear-gradient(135deg,
            rgba(99, 102, 241, 0.3) 0%,
            rgba(16, 185, 129, 0.3) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.testimonial-author {
    color: var(--color-text-light);
    font-weight: 500;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.service-card {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.05) 0%,
        rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid transparent;
    background-image:
        linear-gradient(white, white),
        linear-gradient(135deg,
            rgba(99, 102, 241, 0.3) 0%,
            rgba(16, 185, 129, 0.3) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.service-description {
    color: var(--color-text-light);
    line-height: 1.6;
}

.service-formats {
    background-color: var(--color-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius);
    margin-top: var(--spacing-xl);
}

.formats-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.formats-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.format-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.05) 0%,
        rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid transparent;
    background-image:
        linear-gradient(white, white),
        linear-gradient(135deg,
            rgba(99, 102, 241, 0.3) 0%,
            rgba(16, 185, 129, 0.3) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.format-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.format-title-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.format-icon {
    font-size: 1.25rem;
    color: var(--color-primary);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(16, 185, 129, 0.1) 100%);
    border-radius: 50%;
}

.format-item strong {
    color: var(--color-text);
    font-size: 1rem;
}

.format-description {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: left;
}

/* About Section */
.about {
    background-color: var(--color-secondary);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.about-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xs);
}

.credentials {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-lg);
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.about-location {
    margin-top: var(--spacing-2xl);
    text-align: center;
}

.about-location h4 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.about-location p {
    margin-bottom: var(--spacing-lg);
    font-size: 1.125rem;
}

.map-link {
    display: block;
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.map-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.resource-card {
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.resource-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.resource-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.resource-excerpt {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.resource-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.resource-link:hover {
    text-decoration: underline;
}

/* Form card when used as a link */
a.resource-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.resource-card .resource-title {
    color: var(--color-text);
}

a.resource-card .resource-excerpt {
    color: var(--color-text-light);
}

a.resource-card:hover .resource-link {
    text-decoration: underline;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.faq-item {
    padding: var(--spacing-xl);
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.05) 0%,
        rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid transparent;
    background-image:
        linear-gradient(white, white),
        linear-gradient(135deg,
            rgba(99, 102, 241, 0.3) 0%,
            rgba(16, 185, 129, 0.3) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: var(--radius);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.faq-answer {
    color: var(--color-text-light);
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: var(--spacing-md);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer h4 {
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.legal-links {
    list-style: none;
}

.legal-links li {
    margin-bottom: var(--spacing-xs);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.disclaimer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* Mobile Styles */
@media (max-width: 767px) {
    .header-content {
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        font-size: 0.875rem;
        gap: 0.5rem;
        max-width: 55%;
        flex-shrink: 1;
        min-width: 0;
    }

    .logo-text {
        white-space: normal;
        line-height: 1.3;
    }

    .logo-img {
        height: 32px;
    }

    .section-logo {
        width: 60px;
    }

    .hero-logo {
        width: 90px;
    }

    .nav-cta {
        order: 2;
    }

    .nav-cta .btn-text-full {
        display: none;
    }

    .nav-cta .btn-text-short {
        display: inline;
    }

    .hamburger {
        order: 3;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px var(--spacing-lg) var(--spacing-lg);
        gap: var(--spacing-lg);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        order: 1;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: var(--spacing-md);
        text-align: center;
        font-size: 1rem;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .map-link {
        height: 250px;
    }

    .about-location h4 {
        font-size: 1.25rem;
    }

    .about-location p {
        font-size: 1rem;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 899px) {
    .nav-cta .btn-text-full {
        display: none;
    }

    .nav-cta .btn-text-short {
        display: inline;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .formats-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .about-image {
        flex-shrink: 0;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.modal-container {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 2001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.modal-close:hover {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-intro {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.message-header .modal-intro {
    margin-bottom: 0;
}

.modal-intro a {
    color: var(--color-primary);
    text-decoration: none;
}

.modal-intro a:hover {
    text-decoration: underline;
}

/* Form Styles */
.message-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-sm);
    border: 2px solid var(--color-text-light);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.form-checkbox label {
    font-weight: 400;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-checkbox label a {
    color: var(--color-primary);
    text-decoration: none;
}

.form-checkbox label a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

/* Success and Error Messages */
.message-success,
.message-error {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.success-icon,
.error-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 2rem;
    font-weight: bold;
}

.success-icon {
    background-color: #10b981;
    color: white;
}

.error-icon {
    background-color: #ef4444;
    color: white;
}

.message-success h3,
.message-error h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.message-success p,
.message-error p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.confirmation-code {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 0.2em;
    padding: var(--spacing-lg);
    background-color: var(--color-secondary);
    border-radius: var(--radius);
    margin: var(--spacing-lg) 0;
    font-family: 'Courier New', monospace;
}

.success-note {
    font-size: 0.875rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Mobile Modal Adjustments */
@media (max-width: 767px) {
    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-container {
        max-height: 95vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
}

/* Booking Code Modal */
.booking-code-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.95);
}

.booking-code-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-code-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-code-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.booking-code-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

.booking-code-close-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .booking-code-container {
        height: 95vh;
    }

    .booking-code-close-btn {
        top: -40px;
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
    }
}

/* Message Modal (Integrated Layout) */
.message-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
}

.message-modal.active {
    display: block;
}

.message-container {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.9) 0%,
        rgba(16, 185, 129, 0.9) 50%,
        rgba(99, 102, 241, 0.9) 100%);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: var(--spacing-lg) 0;
}

.message-close-btn {
    position: fixed;
    top: 85px;
    right: 2rem;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.message-close-btn:hover {
    transform: scale(1.05);
    background-color: var(--color-secondary);
    border-color: var(--color-primary);
}

.message-content {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.message-header {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 1px solid var(--color-border);
}

.message-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-text);
}

.message-body {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
    .message-container {
        top: 70px;
        padding: 0;
    }

    .message-close-btn {
        top: 75px;
        right: 0.5rem;
        font-size: 1.5rem;
        width: 44px;
        height: 44px;
    }

    .message-content {
        padding: 0;
        max-width: 100%;
    }

    .message-header {
        border-radius: 0;
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .message-body {
        border-radius: 0;
        padding: var(--spacing-md) var(--spacing-sm);
    }
}

/* Appointment Booking Modal */
.appointment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
}

.appointment-modal.active {
    display: block;
}

.appointment-container {
    position: fixed;
    top: 70px; /* Below the header */
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.9) 0%,
        rgba(16, 185, 129, 0.9) 50%,
        rgba(99, 102, 241, 0.9) 100%);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: var(--spacing-lg) 0;
}

.appointment-close-btn {
    position: fixed;
    top: 85px;
    right: 2rem;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.appointment-close-btn:hover {
    transform: scale(1.05);
    background-color: var(--color-secondary);
    border-color: var(--color-primary);
}

.appointment-iframe-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    min-height: calc(100vh - 140px);
}

.appointment-iframe-wrapper iframe {
    width: 100%;
    min-height: 700px;
    height: 100%;
    border: 0;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
    .appointment-container {
        top: 70px;
        padding: 0;
    }

    .appointment-close-btn {
        top: 75px;
        right: 0.5rem;
        font-size: 1.5rem;
        width: 44px;
        height: 44px;
    }

    .appointment-iframe-wrapper {
        padding: 0;
        max-width: 100%;
        min-height: calc(100vh - 70px);
    }

    .appointment-iframe-wrapper iframe {
        min-height: 600px;
        border-radius: 0;
    }
}

/* Intro Session Modal */
.intro-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
}

.intro-modal.active {
    display: block;
}

.intro-container {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.9) 0%,
        rgba(16, 185, 129, 0.9) 50%,
        rgba(99, 102, 241, 0.9) 100%);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: var(--spacing-lg) 0;
}

.intro-close-btn {
    position: fixed;
    top: 85px;
    right: 2rem;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.intro-close-btn:hover {
    transform: scale(1.05);
    background-color: var(--color-secondary);
    border-color: var(--color-primary);
}

.intro-iframe-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    min-height: calc(100vh - 140px);
}

.intro-iframe-wrapper iframe {
    width: 100%;
    min-height: 700px;
    height: 100%;
    border: 0;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Form Page Styles */
.form-page {
    min-height: 100vh;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.03) 0%,
        rgba(16, 185, 129, 0.03) 100%);
    padding: var(--spacing-lg);
    position: relative;
}

.back-link {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--color-primary);
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-top: var(--spacing-xl);
}

.form-logo {
    width: 60px;
    height: auto;
    margin-bottom: var(--spacing-sm);
}

.form-clinician-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.form-title-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--color-border);
}

.form-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.form-description {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.form-pdf-link {
    margin-top: var(--spacing-sm);
}

.form-pdf-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.875rem;
}

.form-pdf-link a:hover {
    text-decoration: underline;
}

.client-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-instructions {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.05) 0%,
        rgba(16, 185, 129, 0.05) 100%);
    border-left: 4px solid var(--color-primary);
    padding: var(--spacing-md);
    color: var(--color-text);
    line-height: 1.6;
    border-radius: var(--radius);
    font-weight: 500;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    font-weight: 500;
    color: var(--color-text);
}

.form-input {
    padding: var(--spacing-sm);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.form-checkbox-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.form-checkbox-label {
    color: var(--color-text);
    line-height: 1.6;
    cursor: pointer;
}

.form-readonly {
    padding: var(--spacing-sm);
    background: var(--color-secondary);
    border-radius: var(--radius);
    color: var(--color-text-light);
}

.form-actions {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--color-border);
}

/* Form Success/Error Messages */
.form-success,
.form-error {
    text-align: center;
    padding: var(--spacing-xl);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.1) 0%,
        rgba(16, 185, 129, 0.2) 100%);
    color: #10b981;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-weight: bold;
}

.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.1) 0%,
        rgba(239, 68, 68, 0.2) 100%);
    color: #ef4444;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-weight: bold;
}

.form-success h3,
.form-error h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.form-success p,
.form-error p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.confirmation-code {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(16, 185, 129, 0.1) 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius);
    margin: var(--spacing-lg) 0;
    letter-spacing: 0.1em;
}

.success-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-lg);
}

@media (max-width: 767px) {
    .form-page {
        padding: var(--spacing-sm);
    }

    .back-link {
        position: static;
        display: block;
        margin-bottom: var(--spacing-md);
    }

    .form-header {
        padding-top: var(--spacing-md);
    }

    .form-container {
        padding: var(--spacing-md);
    }

    .form-main-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .intro-container {
        top: 70px;
        padding: 0;
    }

    .intro-close-btn {
        top: 75px;
        right: 0.5rem;
        font-size: 1.5rem;
        width: 44px;
        height: 44px;
    }

    .intro-iframe-wrapper {
        padding: 0;
        max-width: 100%;
        min-height: calc(100vh - 70px);
    }

    .intro-iframe-wrapper iframe {
        min-height: 600px;
        border-radius: 0;
    }
}
