/* CSS Variables - Matching Purelane Health Brand */
:root {
    --primary-color: hsl(171, 44%, 55%);
    --primary-dark: hsl(171, 44%, 45%);
    --secondary-color: hsl(0, 0%, 18%);
    --accent-color: hsl(205, 65%, 65%);
    --background: hsl(44, 26%, 94%);
    --card-bg: hsl(0, 0%, 100%);
    --text-primary: hsl(0, 0%, 18%);
    --text-muted: hsl(0, 0%, 45%);
    --border-color: hsl(0, 0%, 90%);
    --destructive: hsl(0, 84%, 60%);
    --success: hsl(171, 44%, 55%);
    
    --font-sans: "Open Sans", sans-serif;
    --font-heading: "Montserrat", sans-serif;
    --font-accent: "Poppins", sans-serif;
    
    --radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Header */
.header {
    position: relative;
    min-height: 120px;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(50%);
    z-index: 0;
    display: block;
}

.header-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.logo {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.15rem;
}

.logo-img {
    max-width: 50px;
    width: 100%;
    height: auto;
    display: block;
}

.tagline {
    font-family: var(--font-accent);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        min-height: 70px;
        padding: 0.4rem 0.75rem;
        width: 100%;
        max-width: 100%;
        background: var(--card-bg);
    }

    .bg-video {
        display: none;
    }

    .logo-img {
        max-width: 28px;
    }

    .tagline {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .header {
        min-height: 60px;
        padding: 0.3rem 0.5rem;
        width: 100%;
        max-width: 100%;
        background: var(--card-bg);
    }

    .bg-video {
        display: none;
    }

    .logo-img {
        max-width: 24px;
    }

    .tagline {
        font-size: 0.6rem;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    width: 100%;
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem 0.5rem;
    }
}

/* Intro Section */
.intro-section {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-section h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .intro-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .intro-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Form */
.questionnaire-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .questionnaire-form {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .questionnaire-form {
        padding: 1.25rem;
        border-radius: 0.375rem;
    }
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.section-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.75rem;
}

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

.required {
    color: var(--destructive);
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}

/* Input Fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    outline: none;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(63, 183, 162, 0.1);
}

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

/* Form Actions */
.form-actions {
    margin-top: 2.5rem;
    text-align: center;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Success Page */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.success-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 600px;
}

.success-icon {
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-card h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.25rem;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.success-details {
    background: hsl(171, 44%, 96%);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: left;
}

.success-details p {
    color: var(--text-primary);
    line-height: 1.7;
}

.next-steps {
    text-align: left;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: hsl(44, 26%, 97%);
    border-radius: var(--radius);
}

.next-steps h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style: none;
    padding-left: 0;
}

.next-steps li {
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--text-primary);
}

.next-steps li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.action-links {
    margin-top: 2rem;
}

.secondary-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 1.5rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-img {
        max-width: 300px;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .intro-section h2 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .questionnaire-form {
        padding: 1.5rem;
    }
    
    .form-section h3 {
        font-size: 1.25rem;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .success-card {
        padding: 2rem 1.5rem;
    }
    
    .success-card h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        max-width: 250px;
    }
    
    .main-content {
        padding: 2rem 0.75rem;
    }
    
    .questionnaire-form {
        padding: 1.25rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        font-size: 16px;
    }
}