:root {
    --primary: #77c2ae;
    /* Sage green */
    --primary-rgb: 119, 194, 174;
    --secondary: #6672bd;
    /* Soft purple */
    --secondary-rgb: 102, 114, 189;
    --background: #1a1a1a;
    --surface: #1a1a1a;
    --text: #ffffff;
    --text-secondary: #cccccc;
    --card-bg: rgba(16, 20, 30, 0.8);
    --glow-primary: rgba(119, 194, 174, 0.4);
    /* Sage green glow */
    --glow-secondary: rgba(102, 114, 189, 0.4);
    /* Soft purple glow */
    --heading: #ffffff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Default scroll padding */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 4rem;
    /* Add padding for fixed nav */
}

.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: transparent;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 4rem;
    /* Explicitly set nav height */
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-image {
    height: 2.5rem;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-image {
    opacity: 0.8;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 0;
    background: var(--background);
}

.hero-content {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-logo {
    width: 8rem;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: var(--text);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.cta-button i {
    font-size: 1.2rem;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: var(--background);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, var(--glow-secondary) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, var(--glow-primary) 0%, transparent 40%);
    pointer-events: none;
}

.features-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.5rem 2rem;
}

.features h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: linear-gradient(45deg, var(--primary), var(--secondary)) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.title-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 3rem;
}

.feature-card {
    position: relative;
    z-index: 0;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2.5rem;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card::before {
    content: "";
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-color: var(--background);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-image: linear-gradient(45deg,
            #77c2ae,
            #6672bd,
            #000000,
            #77c2ae);
    background-size: 200% 200%;
    animation: bgRotate 6s linear infinite;
}

.feature-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: var(--card-bg);
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

.mouse-glow {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle at var(--mouse-x, center) var(--mouse-y, center),
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card:hover .mouse-glow {
    opacity: 1;
}

.feature-card:hover::before {
    animation: bgRotate 6s linear infinite;
}

.feature-card i {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--glow-primary));
}

.feature-card h3 {
    margin: 1rem 0;
    font-size: 1.3rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.5rem;
}

.feature-card p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    text-align: left;
}

.feature-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text);
    text-align: left;
}

.feature-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.feature-card li:last-child {
    margin-bottom: 0;
}

@keyframes bgRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* About Section */
.about {
    padding: 4rem 2rem;
    background: var(--background);
}

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

.about h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Mission Section */
.mission {
    padding: 4rem 2rem;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(119, 194, 174, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mission h2,
.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding: 0.5rem 2rem;
}

.mission h2::before,
.features h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: linear-gradient(45deg, var(--primary), var(--secondary)) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.mission-content,
.features h2 {
    text-align: center;
}

.mission-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text);
    max-width: 800px;
}

.mission p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Hierarchy Section */
.hierarchy-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6rem;
}

.hierarchy-container h2 {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.5rem 2rem;
}

.hierarchy-container h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: linear-gradient(45deg, var(--primary), var(--secondary)) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.hierarchy-lines {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vertical-line {
    width: 2px;
    height: 2rem;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    position: relative;
}

.vertical-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: glow 1.5s ease-in-out infinite;
}

.horizontal-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 2rem;
}

.h-line {
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    position: relative;
}

.h-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    animation: glow 1.5s ease-in-out infinite;
    animation-delay: 0.75s;
}

@keyframes glow {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) scale(1.5);
        opacity: 1;
    }
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    background: var(--surface);
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.contact-tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--background);
    padding: 4rem 2rem 2rem;
}

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

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

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}

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

/* Scroll Margin for Sections */
section {
    scroll-margin-top: 5rem;
    /* Adjust based on nav height plus some padding */
    padding: 4rem 0;
    position: relative;
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

@media screen and (max-width: 768px) {
    .nav-content {
        padding: 0.4rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-content {
        padding: 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content .tagline {
        font-size: 1.2rem;
    }

    .features,
    .mission,
    .about,
    .contact {
        padding: 3rem 1rem;
    }

    .features h2,
    .mission h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card i {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
        margin: 0.75rem 0;
    }

    .feature-card li {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    html {
        scroll-padding-top: 150px;
        /* Increased scroll padding for mobile */
    }

    body {
        padding-top: 7rem;
        /* Increased padding for mobile nav */
    }

    nav {
        height: auto;
        min-height: 4rem;
        background: rgba(10, 10, 10, 0.9);
    }

    .nav-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 0 0 16px 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-links {
        width: 100%;
        gap: 1rem;
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 12px;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem;
        color: #ffffff;
        font-weight: 500;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    section {
        scroll-margin-top: 10rem;
        /* Increased to ensure titles are visible */
        padding: 2rem 0;
    }

    .mission,
    .features,
    .about,
    .contact {
        padding-top: 3rem;
        /* Additional top padding for sections */
    }

    .hero {
        min-height: calc(100vh - 7rem);
        padding-top: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .tagline {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .features h2,
    .mission h2 {
        font-size: 1.8rem;
        padding: 0.4rem 1.5rem;
    }

    .feature-grid {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card i {
        font-size: 1.75rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card li {
        font-size: 1rem;
        padding-left: 1.0rem;
    }

    .feature-card li::before {
        width: 5px;
        height: 5px;
        top: 0.45rem;
    }

    .mission p,
    .about p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: no-preference) {
    * {
        transition: all 0.3s ease;
    }
}

/* Typing Animation Styles */
.typing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    min-height: 5rem;
}

.typing-wrapper {
    text-align: center;
}

.typing-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.typing-cursor {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--primary);
    animation: blink 0.7s infinite;
    line-height: 1.5rem;
    margin-left: 1px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media screen and (max-width: 768px) {
    .nav-content {
        padding: 0.4rem 1.5rem;
    }

    .feature-grid {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card i {
        font-size: 1.75rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card li {
        font-size: 1rem;
        padding-left: 1.0rem;
    }

    .feature-card li::before {
        width: 5px;
        height: 5px;
        top: 0.45rem;
    }

    .mission p,
    .about p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .typing-container {
        min-height: 8rem;
    }
}

/* Animation Base Classes */
.animate {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(30px);
}

.animate.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.animate.slide-left {
    transform: translateX(-50px);
}

.animate.slide-right {
    transform: translateX(50px);
}

.animate.scale-up {
    transform: scale(0.95);
}

.animate.show {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger Delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* Intake Form Styles */
.intake-section {
    padding: 3rem 1rem 3rem;
    /* Reduced from 6rem */
    /* Reduced padding */
    min-height: auto;
    /* Remove 80vh forcing */
    display: flex;
    justify-content: center;
    background: var(--background);
}

.intake-container {
    width: 100%;
    max-width: 800px;
    /* Increased width for 2-col */
}

.intake-section h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intake-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.intake-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.span-2 {
    grid-column: span 2;
}

.form-group {
    margin-bottom: 0;
    /* Let grid gap handle spacing */
    position: relative;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Validation Styles */
.form-group input:focus:valid,
.form-group textarea:focus:valid {
    box-shadow: 0 0 8px #10b981;
    border-color: #10b981;
}

.form-group input.touched:invalid,
.form-group textarea.touched:invalid {
    box-shadow: 0 0 8px #ef4444;
    border-color: #ef4444;
}

/* Form Separator */
.form-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 1.5rem 0;
    width: 100%;
}

/* Tooltip Styles */
.tooltip-container label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tooltip-icon {
    color: var(--primary);
    cursor: help;
    font-size: 0.9em;
}

.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 10;
    bottom: 100%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tooltip-container label:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    box-shadow: 0 0 20px var(--glow-primary);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Animation */
.hidden {
    display: none !important;
}

.success-container {
    text-align: center;
    padding: 3rem;
    animation: fadeIn 0.5s ease;
}

.pulse-animation {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.pulse-core {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    z-index: 2;
    box-shadow: 0 0 20px var(--glow-primary);
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-ring.delay {
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Notification */
@media screen and (max-width: 768px) {
    .intake-form {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .span-2 {
        grid-column: span 1;
    }

    .intake-section {
        padding-top: 1rem;
        /* Drastically reduced from 5rem */
    }

    .intake-section h1 {
        font-size: 1.5rem;
        /* Reduced size for mobile */
        margin-bottom: 0.5rem;
        padding: 0 1rem;
    }
}

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
}

.toast {
    background: #ef4444;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 1rem;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}