/* ==========================================================================
   soFree Landing Page - Clean & Focused
   ========================================================================== */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Design Tokens */
:root {
    /* Colors - soFree Brand Palette */
    --color-primary: #614298;           /* Primary Purple - Main brand color */
    --color-primary-light: #CE72FB;     /* Bright Purple - Special highlights */
    --color-secondary: #59B2D1;         /* soFree Blue - Secondary brand color */
    --color-accent: #59B2D1;            /* Using soFree Blue as accent */
    --color-accent-light: #71C0E2;      /* Light blue from logo gradient */
    --color-background-dark: #271A4D;   /* Primary Background - Deep purple */
    --color-background-secondary: #42355A; /* Secondary Background */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-300: #e5e7eb;
    --color-gray-400: #9ca3af;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Poppins', system-ui, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-size-sm: 0.875rem;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    
    /* Radius & Shadows */
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Base Elements */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-gray-900);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

/* Consistent heading rhythm */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-lg) 0;
}

.header__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo{
    display: flex;
    align-items: center;
}

.header__logo-img {
    height: 48px;
}

.header__social {
    display: flex;
    gap: var(--space-sm);
}

/* Social Links */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.social-link__text {
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
}

.social-link__icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    background-color: var(--color-background-dark); /* Dark brand purple base */
    min-height: 100vh;
    padding: var(--space-4xl) 0;
    display: flex;
    align-items: center;
    color: var(--color-white);
    --hero-image-offset: 0px;
}

/* Background image layer (behind) */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/images/emdria2.png') center/cover no-repeat;
    transform: translate3d(0, var(--hero-image-offset), 0);
    opacity: 0;
    transition: opacity 600ms ease;
    z-index: 0;
}

/* Gradient overlay (above image, below content) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 13, 45, 0.7) 0%, rgba(97, 66, 152, 0.7) 50%, rgba(20, 13, 45, 0.7) 100%);
    z-index: 1;
}

.hero--bg-loaded::after {
    opacity: 1;
}

/* Scroll-driven parallax (native, high-perf). Moves image layer only from 0% → 50%. */
@supports (animation-timeline: view()) {
    .hero {
        animation-name: heroParallax;
        animation-timeline: view();
        animation-duration: 1s; /* timeline-driven; duration is abstract */
        animation-timing-function: linear;
        animation-fill-mode: both;
        animation-range: cover 0% cover 100%;
    }
    @keyframes heroParallax {
        from { background-position: center 0%, center 0%; }
        to   { background-position: center 0%, center 50%; }
    }
}

.hero--center .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    place-items: center;
}

.hero--center .hero__content {
    margin: 0 auto;
    max-width: none;
    width: min(100%, 540px);
}

.hero__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    width: 100%;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hero__headline {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.hero__hook {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero__cta-button {
    display: inline-block;
    margin-top: var(--space-xl);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__cta-button:hover {
    transform: translateY(-2px);
}

.form-subtitle {
    margin-top: var(--space-xs);
    margin-bottom: var(--space-md);
    color: var(--color-gray-700);
    font-size: 0.95rem;
}

.hero__form {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 400px;
    padding: var(--space-lg) 0;
}

/* Mailchimp Form Styling */
#mc_embed_shell {
    width: 100%;
    min-width: 320px;
}

.mailchimp-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

#mc_embed_signup_scroll {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-title {
    color: var(--color-gray-900);
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-lg);
    text-align: center;
    flex-shrink: 0;
}

.mc-field-group {
    flex-shrink: 0;
}

.mc-field-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-700);
    margin-top: var(--space-xs);
    text-align: left;
}

.asterisk {
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

/* Radio Button Styling */
.radio-group-label {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-700);
    text-align: left;
}

.radio-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    min-height: 40px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--color-gray-700);
    cursor: pointer;
    margin-bottom: 0;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: fit-content;
}

.radio-option:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    pointer-events: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: transparent;
    display: inline-block;
    vertical-align: middle;
    margin-right: var(--space-xs);
}

.radio-option:hover .radio-custom {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.05);
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--color-white);
    border-radius: 50%;
}

.radio-option input[type="radio"]:focus + .radio-custom {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.clear {
    margin-top: auto;
}

/* Submit Button */
.mailchimp-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    margin-top: var(--space-md);
}

.mailchimp-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-loading {
    display: none;
}

.mailchimp-submit-btn.loading .btn-text {
    display: none;
}

.mailchimp-submit-btn.loading .btn-loading {
    display: inline;
}

/* Response Messages */
.response {
    padding: var(--space-sm);
    border-radius: var(--radius);
    font-size: 0.875rem;
    text-align: center;
}

#mce-success-response,
#mce-success-response-bottom {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

#mce-error-response,
#mce-error-response-bottom {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    margin-top: var(--space-sm);
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */

.benefits {
    padding: var(--space-4xl) 0;
    background-color: var(--color-gray-50);
    position: relative;
    z-index: 10;
}

.benefits__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.benefits__content {
    display: flex;
    justify-content: center;
}

.benefits__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefits__screenshot {
    max-width: 100%;
    height: auto;
}

.benefits__title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

/* Benefit Cards */
.benefit {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.benefit:hover {
    transform: translateY(-4px);
}

.benefit__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.benefit__title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
}

.benefit__text {
    color: var(--color-gray-600);
}

/* Why Try */
.why-try {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.why-try__title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-lg);
    max-width: 350px
}

.why-try__list {
    list-style: none;
    text-align: left;
}

.why-try__item {
    padding: var(--space-sm) 0;
    padding-left: var(--space-xl);
    position: relative;
    font-size: 1.125rem;
    color: var(--color-gray-700);
}

.why-try__item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
    padding: var(--space-4xl) 0 calc(var(--space-4xl) + 60px);
    background: linear-gradient(135deg, var(--color-background-dark) 0%, var(--color-primary) 50%, var(--color-background-dark) 100%);
    color: var(--color-white);
    position: relative;
    z-index: 10;
}

.cta__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.cta__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.cta__info {
    position: sticky;
    top: var(--space-2xl);
    align-self: start;
}

.cta__title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
}

.cta__subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
}

.beta-disclaimer {
    margin-top: var(--space-2xl);
    color: inherit;
    opacity: 0.5;
    font-size: 0.95rem;
  }

.beta-disclaimer .info-icon {
    color: currentColor;
}

.beta-disclaimer .info-icon svg {
    width: 16px;
    height: 16px;
    margin-bottom: -.15rem
}

.marketing-disclaimer {
    margin: var(--space-lg) 0 0 0;
    color: var(--color-gray-700);
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.4;
}

.therapist-link {
    margin-top: var(--space-lg);
}

.therapist-link-text {
    margin: 0;
    text-align: center;
}

.therapist-link-anchor {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
}

.therapist-link-anchor:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Next Steps */
.next-steps__title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
}

.next-steps__list {
    list-style: none;
    counter-reset: step;
}

.next-steps__list li {
    counter-increment: step;
    margin-bottom: var(--space-sm);
    padding-left: var(--space-xl);
    position: relative;
    opacity: 0.9;
}

.next-steps__list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
}

/* ==========================================================================
   Form
   ========================================================================== */

.cta__form {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 400px;
}

/* Bottom Form Specific Styling */
#mc_embed_shell_bottom {
    width: 100%;
    min-width: 320px;
}

/* Demo Section */
.demo {
    background: var(--color-gray-50);
    position: relative;
    z-index: 10;
}

.demo__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--space-4xl) var(--container-padding) var(--space-lg);
}

.demo__video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 full-width (just like the original placeholder) */
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.demo__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
}

#mc_embed_signup_scroll_bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-700);
    margin-bottom: var(--space-xs);
}

.form-input,
.form-select {
    padding: var(--space-md);
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-input.error,
.form-select.error {
    border-color: #ef4444;
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

.cta-button {
    background: linear-gradient(135deg, var(--color-accent) 0%, #34d399 100%);
    color: var(--color-white);
    border: none;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success State */
.form-success {
    text-align: center;
    padding: var(--space-2xl);
}

.form-success__icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.form-success__title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-md);
}

.form-success__message {
    color: var(--color-gray-600);
    margin-bottom: var(--space-md);
}

/* Mailchimp Success Replacement */
.mailchimp-success {
    padding: 0;
    text-align: center;
}

.mailchimp-success--compact {
    padding: 0;
}

.mailchimp-success .success-icon {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
}

.mailchimp-success .success-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-md);
}

.mailchimp-success .success-message {
    color: var(--color-gray-700);
    line-height: 1.6;
}

.mailchimp-success .success-message p {
    margin-bottom: var(--space-xs);
    font-size: 0.975rem;
}

.mailchimp-success .next-steps {
    background: var(--color-gray-50);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    text-align: left;
}

.mailchimp-success .next-steps h4 {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.mailchimp-success .next-steps ol {
    list-style: none;
    counter-reset: step;
    max-width: 420px;
    margin: 0 auto;
}

.mailchimp-success .next-steps li {
    counter-increment: step;
    margin-bottom: var(--space-xs);
    padding-left: var(--space-lg);
    position: relative;
    line-height: 1.5;
}

.mailchimp-success .next-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--color-primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
}

.mailchimp-success .success-note {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: rgba(89, 178, 209, 0.15); /* brand accent (#59B2D1) @ 15% */
    border-radius: var(--radius);
    border-left: 4px solid var(--color-accent);
}

.mailchimp-success .success-note p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .hero {
        min-height: 80vh;
        padding: var(--space-2xl) 0;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
        padding-top: var(--space-4xl);
    }
    
    .hero__headline {
        font-size: 2.5rem;
    }
    
    .hero__content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero__form {
        min-height: 300px;
        order: 2;
    }
    
    #mc_embed_shell {
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .radio-options {
        justify-content: flex-start;
    }
    
    .benefits__container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .benefits__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .cta__content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .cta__info {
        position: static;
        top: auto;
    }
    
    #mc_embed_shell_bottom {
        margin-top: var(--space-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header__social {
        gap: var(--space-xs);
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }
    
    .hero__headline {
        font-size: 2rem;
    }
    
    .hero__hook {
        font-size: 1.125rem;
    }
    
    .hero__form {
        min-height: 250px;
    }
    
    .mailchimp-form {
        padding: var(--space-lg);
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .benefits,
    .cta {
        padding: var(--space-3xl) 0;
    }
    
    .benefits__title,
    .cta__title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Footer Component
   ========================================================================== */

.footer {
    position: relative;
    margin-top: -60px;
    z-index: 15;
}

.footer__angle {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.footer__angle-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: block;
}

.footer__content {
    background-color: var(--color-gray-50);
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-2xl);
}

.footer__left {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.footer__logo-img {
    height: 40px;
    width: auto;
}

.footer__legal {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer__copyright {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer__link {
    color: var(--color-secondary);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-lg);
}

.footer__contact {
    text-align: right;
}

.footer__contact-label {
    color: var(--color-gray-900);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    margin: 0 0 var(--space-xs) 0;
}

.footer__contact-link {
    color: var(--color-secondary);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__contact-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius);
    color: var(--color-gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer__social-icon:hover {
    background-color: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

.footer__social-icon .icon-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}

.footer__social-icon .social-icon__svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Form padding adjustments for tablets and below */
@media (max-width: 1024px) {
    .mailchimp-form {
        padding: var(--space-lg);
    }
    
    .mailchimp-form-bottom {
        padding: var(--space-lg);
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        margin-top: -40px;
    }
    
    .footer__angle {
        height: 40px;
    }
    
    .footer__angle-svg {
        height: 40px;
    }
    
    .cta {
        padding: var(--space-3xl) 0 calc(var(--space-3xl) + 40px);
    }
    
    .footer__container {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .footer__right {
        align-items: flex-start;
        width: 100%;
    }
    
    .footer__contact {
        text-align: left;
    }
    
    .footer__legal {
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .footer {
        margin-top: -30px;
    }
    
    .footer__angle {
        height: 30px;
    }
    
    .footer__angle-svg {
        height: 30px;
    }
    
    .cta {
        padding: var(--space-3xl) 0 calc(var(--space-3xl) + 30px);
    }
}
