/* Common Styles for Train5D Website */

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

body {
    font-family: 'Poppins', sans-serif;
    background: #f8fafb;
    color: #464659;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background: #fff;
    padding: 5px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: #fff;
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.header-logo {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

.header.scrolled .header-logo {
    height: 50px;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #464659;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid transparent;
}

.back-button:hover {
    color: #28b8e0;
    border-color: #28b8e0;
    background: rgba(40, 184, 224, 0.05);
    transform: translateX(-3px);
}

.back-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-button:hover .back-arrow {
    transform: translateX(-3px);
}

/* Navigation Styles */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #464659;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #28b8e0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #464659;
    cursor: pointer;
    line-height: 1;
}

/* Hero Section Styles */
.hero {
    background: #f1f5f7;
    color: #464659;
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="25" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="70" cy="15" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="40" r="2" fill="rgba(255,255,255,0.06)"/><circle cx="90" cy="35" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="60" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="80" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="45" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero .subtitle {
    font-size: 1.4rem;
    margin-bottom: 32px;
    line-height: 1.5;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero .problem-statement {
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-style: italic;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

/* Button Styles */
.cta-button {
    background: #28b8e0;
    color: white;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(40, 184, 224, 0.3);
    text-decoration: none;
    display: inline-block;
    margin: 8px;
    font-family: 'Poppins', sans-serif;
}

.cta-button:hover {
    background: #1ea3cc;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 184, 224, 0.4);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button.secondary:hover {
    background: white;
    color: #464659;
}

/* Assessment Container Styles */
.assessment-container {
    background: white;
    padding: 80px 0;
    min-height: 70vh;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    max-width: 900px;
    margin: 0 auto;
}

/* Progress Bar Styles */
.progress-section {
    margin-bottom: 40px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #28b8e0;
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 20%;
}

.step-indicator {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

/* Section Styles */
.section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f1f5f7;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section h2 {
    color: #464659;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
    border-left: 4px solid #28b8e0;
    padding-left: 20px;
}

.section p {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Question Group Styles */
.question-group {
    margin-bottom: 35px;
}

.question {
    font-weight: 600;
    color: #464659;
    margin-bottom: 20px;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Options Styles */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.option:hover {
    background: rgba(40, 184, 224, 0.05);
    border-color: #28b8e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 184, 224, 0.1);
}

.option input[type="radio"],
.option input[type="checkbox"] {
    margin-right: 15px;
    accent-color: #28b8e0;
    width: 18px;
    height: 18px;
}

.option.selected {
    background: rgba(40, 184, 224, 0.1);
    border-color: #28b8e0;
    color: #464659;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 184, 224, 0.15);
}

/* Text Input Styles */
.text-input {
    width: 100%;
    padding: 20px 25px;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}

.text-input:focus {
    outline: none;
    border-color: #28b8e0;
    background: white;
    box-shadow: 0 0 0 4px rgba(40, 184, 224, 0.1);
}

/* Contact Grid Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-grid .question-group {
    margin-bottom: 0;
}

/* Submit Section Styles */
.submit-section {
    background: #e8f4f8;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 30px;
    border: 2px solid #28b8e0;
}

.submit-button {
    background: #28b8e0;
    color: white;
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(40, 184, 224, 0.3);
    font-family: 'Poppins', sans-serif;
}

.submit-button:hover {
    background: #1ea3cc;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 184, 224, 0.4);
}

.privacy-note {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 20px;
    line-height: 1.5;
}

/* Section Tag Styles */
.section-tag {
    display: inline-block;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Common Tag Colors */
.athletic-background, .prevention-mindset, .wellness-connection, .personalization {
    background: #464659;
}

.swimming-experience, .health-activity, .swimming-water, .goals-optimization, .independence-goals {
    background: #28b8e0;
}

.most-common {
    background: #ff6b6b;
}

.lifestyle-focused {
    background: #28b8e0;
}

.recovery-essential {
    background: #ff9f43;
}

.movement-connection {
    background: #abd86e;
}

/* Loading State Styles */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f8fafb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading h2 {
    color: #464659;
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.loading p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e5e7eb;
    border-left: 5px solid #28b8e0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Container Styles */
.results-container {
    background: white;
    padding: 80px 0;
    min-height: 70vh;
}

.results-grid {
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.result-card.priority {
    border-color: #28b8e0;
    background: #fff;
}

.result-card.integration {
    border-color: #464659;
    background: #f1f5f7;
}

.result-card.research {
    border-color: #464659;
    background: #f1f5f7;
}

.result-card.data {
    border-color: #28b8e0;
    background: white;
}

.result-card.default {
    border-color: #28b8e0;
    background: white;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.card-icon.priority, .card-icon.data, .card-icon.default {
    background: #28b8e0;
    color: white;
}

.card-icon.integration, .card-icon.research {
    background: #464659;
    color: white;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #464659;
    margin: 0;
    line-height: 1.3;
}

.insight-text {
    color: #374151;
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.action-items {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 15px;
    padding: 24px;
    margin-top: 24px;
}

.action-items h4 {
    color: #464659;
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.action-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
}

.action-list li:last-child {
    border-bottom: none;
}

.action-list li:before {
    content: "→";
    color: #28b8e0;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.1rem;
}

.connection-highlight {
    background: rgba(40, 184, 224, 0.05);
    border: 1px solid rgba(40, 184, 224, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.connection-highlight h5 {
    color: #28b8e0;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.connection-highlight p {
    margin: 0;
    color: #464659;
    font-size: 1rem;
    line-height: 1.6;
}

.back-to-assessment {
    text-align: center;
    margin: 40px 0;
}

.back-to-assessment a {
    color: #28b8e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.back-to-assessment a:hover {
    text-decoration: underline;
    transform: translateX(-3px);
}


/* ===========================
   FOOTER STYLES
   =========================== */
   .footer {
    background: #f8fafb;
    padding: 60px 0 0;
    border-top: 1px solid #e5e7eb;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-section {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.logo-and-tagline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-tagline {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
    margin: 0;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #464659;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #28b8e0;
}

.footer-bottom-wrapper {
    background: white;
    padding: 30px 0;
    border-top: 1px solid #e5e7eb;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.footer-copyright {
    color: #6b7280;
    font-size: 0.9rem;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    bottom: 0;
    background: white;
    margin-left: -50vw;
    margin-right: -50vw;
    z-index: -1;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-social span {
    color: #6b7280;
    font-size: 0.9rem;
    margin-right: 10px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: #28b8e0;
    color: #28b8e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 184, 224, 0.2);
}


/* Animations */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section:nth-child(1) { animation-delay: 0.2s; }
.section:nth-child(2) { animation-delay: 0.4s; }
.section:nth-child(3) { animation-delay: 0.6s; }
.section:nth-child(4) { animation-delay: 0.8s; }
.section:nth-child(5) { animation-delay: 1.0s; }

.result-card:nth-child(1) { animation-delay: 0.2s; }
.result-card:nth-child(2) { animation-delay: 0.4s; }
.result-card:nth-child(3) { animation-delay: 0.6s; }
.result-card:nth-child(4) { animation-delay: 0.8s; }
.result-card:nth-child(5) { animation-delay: 1.0s; }

/* Evidence Note Styles (for Skeptical Assessment) */
.evidence-note {
    background: #e8f4f8;
    border: 2px solid #28b8e0;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    font-size: 0.95rem;
    color: #464659;
}

.evidence-note strong {
    color: #28b8e0;
    font-weight: 600;
}

/* Research and Data Styles (for Skeptical Results) */
.research-citation {
    background: rgba(40, 184, 224, 0.05);
    border: 1px solid rgba(40, 184, 224, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.research-citation h5 {
    color: #28b8e0;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.research-citation p {
    margin: 0;
    color: #464659;
    font-size: 1rem;
    line-height: 1.6;
}

.data-point {
    background: rgba(70, 70, 89, 0.05);
    border: 1px solid rgba(70, 70, 89, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.data-point h5 {
    color: #464659;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.data-point p {
    margin: 0;
    color: #464659;
    font-size: 1rem;
    line-height: 1.6;
}

/* Measurement Plan Styles */
.measurement-plan {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 15px;
    padding: 24px;
    margin-top: 24px;
}

.measurement-plan h4 {
    color: #464659;
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.measurement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.measurement-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.measurement-list li:last-child {
    border-bottom: none;
}

.measurement-metric {
    font-weight: 600;
    color: #464659;
}

.measurement-frequency {
    color: #6b7280;
    font-size: 0.9rem;
}

/* ROI Analysis Styles */
.roi-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.roi-item {
    text-align: center;
    padding: 20px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 15px;
    border: 2px solid #e5e7eb;
}

.roi-number {
    font-size: 2rem;
    font-weight: bold;
    color: #28b8e0;
    margin-bottom: 5px;
}

.roi-label {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .hero .subtitle { font-size: 1.2rem; }
    .form-container { padding: 40px; }
    .result-card { padding: 30px; }
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        padding: 20px;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero { padding: 140px 0 60px; }
    .hero h1 { font-size: 2.4rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .hero .problem-statement { font-size: 1rem; }
    
    .form-container { 
        padding: 30px 25px; 
        margin: 0 15px;
    }
    
    .section h2 { 
        font-size: 1.6rem; 
        padding-left: 15px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .result-card { 
        padding: 25px 20px; 
        margin: 0 15px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .card-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .back-button {
        font-size: 1rem;
        padding: 8px 16px;
    }

    .roi-analysis {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero { padding: 120px 0 50px; }
    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1rem; }
    .container { padding: 0 15px; }
    .assessment-container { padding: 60px 0; }
    .results-container { padding: 60px 0; }
    
    .form-container { 
        padding: 25px 20px; 
        margin: 0 10px;
        border-radius: 15px;
    }
    
    .section { 
        margin-bottom: 40px;
        padding-bottom: 30px;
    }
    
    .section h2 { 
        font-size: 1.4rem; 
        padding-left: 12px;
    }
    
    .question { font-size: 1.1rem; }
    
    .option { 
        padding: 15px 20px; 
        border-radius: 12px;
    }
    
    .text-input { 
        padding: 15px 20px; 
        border-radius: 12px;
    }
    
    .submit-button { 
        padding: 16px 40px; 
        font-size: 1.1rem; 
    }

    .result-card { 
        padding: 20px 15px; 
        margin: 0 10px;
        border-radius: 15px;
    }
    
    .card-title { font-size: 1.5rem; }
    .insight-text { font-size: 1rem; }
    
    .cta-button { 
        padding: 16px 32px; 
        font-size: 1.1rem; 
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo-section {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}