/* Envuelta en `@layer webflow` por la refactorización de componentes
   compartidos.
 *
 * Estas hojas redefinen nombres de utilidad que Tailwind también usa: .hidden,
 * .flex, .grid, .block, .gap-*, .text-*. Al cargarse después de Tailwind le
 * ganaban por orden de cascada, y el header y el footer compartidos entraban en
 * una página Webflow con su menú en `hidden` y el `min-[1000px]:flex` que debía
 * revertirlo perdiendo la discusión: el menú no aparecía nunca.
 *
 * Dentro de una capa se acaba el conflicto. Cualquier regla fuera de capa gana a
 * cualquier regla dentro de capa, sin importar especificidad ni orden de carga,
 * así que Tailwind gana siempre y estas hojas siguen estilando todo lo demás
 * exactamente igual que antes: entre ellas la cascada no cambia, porque todas
 * están en la misma capa.
 *
 * El puesto de la capa lo reserva `@layer webflow;` en globals.css, declarado
 * antes que las capas de Tailwind.
 */
@layer webflow {

    /* Geist font for headings */
    .heading-style-h1,
    .h3-heading-17,
    .h2-heading-33,
    .ps-title,
    .benefit-title,
    .hero-heading,
    h1, h2, h3, h4 {
      font-family: 'Geist', sans-serif !important;
    }

    /* Hero H1 specific size - Desktop: 55px */
    h1.heading-style-h1.hero-heading {
      font-size: 55px !important;
      font-weight: 500 !important;
      line-height: 1.1 !important;
      letter-spacing: -0.02em !important;
    }

    /* Section titles (h2) - Desktop: 48px */
    h2.heading-style-h1.hero-heading,
    .faq-title {
      font-size: 48px !important;
      font-weight: 500 !important;
      line-height: 1.1 !important;
      letter-spacing: -0.02em !important;
    }

    /* ==================== RESPONSIVE HEADINGS ==================== */

    /* Mobile (max-width: 768px) */
    @media (max-width: 768px) {
      .hero-heading {
        font-size: 48px !important;
      }

      h1.heading-style-h1.hero-heading,
      h1.heading-style-h1 {
        font-size: 2.75rem !important; /* 44px */
      }

      h2.h2-heading-33,
      h2.heading-style-h1.hero-heading {
        font-size: 2.25rem !important; /* 36px */
      }

      .faq-title {
        font-size: 38px !important;
      }
    }

    /* Small Mobile (max-width: 480px) */
    @media (max-width: 480px) {
      .hero-heading {
        font-size: 38px !important;
      }

      h1.heading-style-h1.hero-heading,
      h1.heading-style-h1 {
        font-size: 2.25rem !important; /* 36px */
      }

      h2.heading-style-h1.hero-heading,
      h2.h2-heading-33,
      .faq-title {
        font-size: 38px !important;
      }
    }

    /* Mexico Container */
    .mexico-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* ==================== HERO FLOW ANIMATION MARKETPLACES ==================== */
    .split-flow-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 30px 20px;
    }

    /* Sale Card - Top */
    .sale-card {
      background: #fff;
      border-radius: 16px;
      padding: 20px 28px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
      display: flex;
      align-items: center;
      gap: 16px;
      opacity: 0;
      transform: translateY(-10px) scale(0.95);
      animation: cardAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
      border: 1px solid rgba(0,0,0,0.04);
    }

    @keyframes cardAppear {
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .sale-icon {
      width: 52px;
      height: 52px;
      background: linear-gradient(135deg, #f8fafc, #f1f5f9);
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #374151;
      border: 1px solid rgba(0,0,0,0.04);
    }

    .sale-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .sale-label {
      font-size: 12px;
      color: #6b7280;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .sale-amount {
      font-size: 24px;
      font-weight: 600;
      color: #0f172a;
    }

    /* Solid Line - Top (Sale to Split Icon) */
    .flow-line-top {
      width: 2px;
      height: 45px;
      background: linear-gradient(to bottom, #e5e7eb, #d1d5db);
      position: relative;
      opacity: 0;
      border-radius: 1px;
      animation: lineAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
      overflow: hidden;
    }

    .flow-line-top::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 0%;
      background: linear-gradient(to bottom, #6b7280, #374151);
      border-radius: 1px;
      box-shadow: 0 0 8px rgba(107, 114, 128, 0.4);
      animation: lineFillSmooth 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
    }

    @keyframes lineAppear {
      to { opacity: 1; }
    }

    @keyframes lineFillSmooth {
      to { height: 100%; }
    }

    /* Split Icon */
    .split-icon {
      width: 48px;
      height: 48px;
      background: linear-gradient(135deg, #f8fafc, #f1f5f9);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #9ca3af;
      opacity: 0;
      transform: scale(0.7);
      animation: iconAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
      position: relative;
      z-index: 2;
      border: 1px solid rgba(0,0,0,0.06);
      box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    }

    .split-icon::after {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(107, 114, 128, 0.15), transparent);
      opacity: 0;
      animation: iconGlow 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.4s forwards;
      z-index: -1;
    }

    @keyframes iconAppear {
      to {
        opacity: 1;
        transform: scale(1);
        color: #374151;
      }
    }

    @keyframes iconGlow {
      to {
        opacity: 1;
      }
    }

    /* Y-Fork Container - The branching structure */
    .y-fork-container {
      position: relative;
      width: 324px;
      height: 55px;
      margin-top: -2px;
    }

    /* Left diagonal branch */
    .fork-branch-left {
      position: absolute;
      top: 0;
      left: calc(50% - 1px);
      width: 2px;
      height: 75px;
      transform-origin: top center;
      transform: rotate(-40deg);
      background: linear-gradient(to bottom, #e5e7eb, #d1d5db);
      border-radius: 1px;
      opacity: 0;
      overflow: hidden;
      animation: lineAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
    }

    .fork-branch-left::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 0%;
      background: linear-gradient(to bottom, #6b7280, #374151);
      border-radius: 1px;
      box-shadow: 0 0 8px rgba(107, 114, 128, 0.4);
      animation: lineFillSmooth 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.8s forwards;
    }

    /* Right diagonal branch */
    .fork-branch-right {
      position: absolute;
      top: 0;
      left: calc(50% - 1px);
      width: 2px;
      height: 75px;
      transform-origin: top center;
      transform: rotate(40deg);
      background: linear-gradient(to bottom, #e5e7eb, #d1d5db);
      border-radius: 1px;
      opacity: 0;
      overflow: hidden;
      animation: lineAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
    }

    .fork-branch-right::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 0%;
      background: linear-gradient(to bottom, #6b7280, #374151);
      border-radius: 1px;
      box-shadow: 0 0 8px rgba(107, 114, 128, 0.4);
      animation: lineFillSmooth 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.8s forwards;
    }

    /* CFDI Cards - Bottom */
    .cfdi-cards-row {
      display: flex;
      gap: 24px;
      justify-content: center;
      margin-top: 8px;
    }

    .cfdi-card {
      background: #fff;
      border-radius: 14px;
      padding: 18px 22px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
      border: 1px solid rgba(0,0,0,0.04);
      min-width: 150px;
      opacity: 0;
      transform: translateY(15px) scale(0.95);
    }

    .cfdi-card.seller {
      animation: cfdiAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.4s forwards;
    }

    .cfdi-card.marketplace {
      animation: cfdiAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.4s forwards;
    }

    @keyframes cfdiAppear {
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .cfdi-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }

    .cfdi-icon {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, #f8fafc, #f1f5f9);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #374151;
      border: 1px solid rgba(0,0,0,0.04);
    }

    .cfdi-type {
      font-size: 11px;
      font-weight: 600;
      color: #6b7280;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }

    .cfdi-recipient {
      font-size: 14px;
      font-weight: 600;
      color: #0f172a;
      margin-bottom: 4px;
    }

    .cfdi-amount {
      font-size: 18px;
      font-weight: 600;
      color: #374151;
    }

    .cfdi-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 10px;
      padding: 5px 12px;
      background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
      border-radius: 100px;
      font-size: 11px;
      font-weight: 600;
      color: #374151;
      border: 1px solid rgba(0,0,0,0.04);
    }

    /* Fade up animations */
    .fade-up {
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUpIn 0.6s ease forwards;
    }
    .fade-up-delay-1 { animation-delay: 0.1s; }
    .fade-up-delay-2 { animation-delay: 0.2s; }
    .fade-up-delay-3 { animation-delay: 0.3s; }

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

    /* Responsive */
    @media (max-width: 991px) {
      .mexico-section[style*="100vh"] {
        min-height: auto !important;
        padding: 120px 0 60px !important;
      }
      .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
      }
      .split-flow-container {
        transform: scale(0.9);
      }
      .cfdi-cards-row {
        gap: 16px;
      }
      .y-fork-container {
        width: 280px;
        height: 50px;
      }
      .fork-branch-left,
      .fork-branch-right {
        height: 60px;
      }
    }
    @media (max-width: 480px) {
      .split-flow-container {
        transform: scale(0.8);
        transform-origin: top center;
      }
      .sale-card {
        padding: 16px 20px;
      }
      .cfdi-card {
        padding: 14px 18px;
        min-width: 130px;
      }
    }

    /* ==================== FEATURE CARDS STYLES ==================== */
    .feature-card {
      background: #fff;
      border-radius: 24px;
      padding: 0;
      overflow: hidden;
      border: 1px solid #e5e7eb;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .feature-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    }

    /* Carousel Animations */
    .carousel-row-right {
      animation: scrollRight 20s linear infinite;
    }
    .carousel-row-left {
      animation: scrollLeft 20s linear infinite;
    }
    @keyframes scrollRight {
      0% { transform: translateX(-20px); }
      50% { transform: translateX(20px); }
      100% { transform: translateX(-20px); }
    }
    @keyframes scrollLeft {
      0% { transform: translateX(20px); }
      50% { transform: translateX(-20px); }
      100% { transform: translateX(20px); }
    }

    /* ==================== HOW IT WORKS ANIMATIONS ==================== */
    .step-card {
      opacity: 0;
      transform: translateY(20px);
      animation: stepFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    .step-card:nth-child(1) { animation-delay: 0.1s; }
    .step-card:nth-child(3) { animation-delay: 0.25s; }
    .step-card:nth-child(5) { animation-delay: 0.4s; }
    .step-card:nth-child(7) { animation-delay: 0.55s; }

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

    /* Arrow animation */
    .step-arrow {
      opacity: 0;
      animation: arrowFadeIn 0.4s ease forwards;
    }
    .step-arrow:nth-child(2) { animation-delay: 0.2s; }
    .step-arrow:nth-child(4) { animation-delay: 0.35s; }
    .step-arrow:nth-child(6) { animation-delay: 0.5s; }

    @keyframes arrowFadeIn {
      to { opacity: 1; }
    }

    /* Checkmark pulse */
    .check-pulse {
      animation: checkPulse 2s ease-in-out infinite;
    }
    @keyframes checkPulse {
      0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
      50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    }

    /* Split icon subtle animation */
    .split-animate {
      animation: splitPulse 3s ease-in-out infinite;
    }
    @keyframes splitPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.08); }
    }

    /* Amount counter effect */
    .amount-glow {
      animation: amountGlow 2.5s ease-in-out infinite;
    }
    @keyframes amountGlow {
      0%, 100% { text-shadow: 0 0 0 rgba(255,255,255,0); }
      50% { text-shadow: 0 0 12px rgba(255,255,255,0.3); }
    }

    /* Card hover effect */
    .step-card:hover {
      border-color: rgba(255,255,255,0.15);
      background: rgba(255,255,255,0.05);
      transition: all 0.3s ease;
    }

    /* Invoice float animation */
    .invoice-float {
      animation: invoiceFloat 3s ease-in-out infinite;
    }
    @keyframes invoiceFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-4px); }
    }

    /* Benefits Section - Sticky Stack Cards (like index.html) */
    .benefits-cards-stack {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .benefit-card {
      background: #fafafa;
      border-radius: 20px;
      padding: 32px;
      border: 1px solid #e5e7eb;
      /* Sticky stacking effect - same top for all cards */
      position: sticky;
      top: 100px;
      margin-bottom: 24px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.06);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .benefit-card:nth-child(1) { z-index: 1; }
    .benefit-card:nth-child(2) { z-index: 2; }
    .benefit-card:nth-child(3) { z-index: 3; }
    .benefit-card:nth-child(4) { z-index: 4; }
    .benefit-card:hover {
      box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    }

    /* Responsive Features */
    @media (max-width: 991px) {
      .features-large-grid {
        grid-template-columns: 1fr !important;
      }
      .features-small-grid {
        grid-template-columns: repeat(2, 1fr) !important;
      }
      .how-steps-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
      }
      .how-flow-grid {
        flex-direction: column !important;
        gap: 16px !important;
      }
      .how-flow-grid > .step-arrow {
        transform: rotate(90deg);
        padding: 8px 0 !important;
      }
      .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
      }
      .benefits-sticky {
        position: relative !important;
        top: 0 !important;
      }
      /* Disable sticky on mobile for benefit cards */
      .benefit-card {
        position: relative !important;
        top: auto !important;
        margin-bottom: 16px;
      }
    }
    @media (max-width: 640px) {
      .features-small-grid {
        grid-template-columns: 1fr !important;
      }
    }

    /* ==================== COMPREHENSIVE RESPONSIVE STYLES ==================== */
    /* Títulos: Desktop 55px (H1) / 48px (secciones) | 991px: 40px | 767px: 32px | 479px: 28px */

    /* Tablet (991px) - Títulos: 40px */
    @media (max-width: 991px) {
      h1.heading-style-h1.hero-heading,
      h2.heading-style-h1.hero-heading,
      .benefits-sticky .heading-style-h1,
      .dark-bg .heading-style-h1.hero-heading,
      .faq-title {
        font-size: 40px !important;
        line-height: 1.1 !important;
      }
      .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
      }
      .testimonials-grid > div {
        height: 420px !important;
      }
    }

    /* Mobile (767px) - Títulos: 38px */
    @media (max-width: 767px) {
      h1.heading-style-h1.hero-heading,
      h2.heading-style-h1.hero-heading,
      .benefits-sticky .heading-style-h1,
      .dark-bg .heading-style-h1.hero-heading,
      .faq-title,
      h1.heading-style-h1,
      h2.heading-style-h1,
      .hero-heading,
      h2.hero-heading {
        font-size: 38px !important;
        line-height: 1.15 !important;
      }

      h1.heading-style-h1.hero-heading *,
      h2.heading-style-h1.hero-heading *,
      h2.heading-style-h1 *,
      .hero-heading *,
      h2.hero-heading * {
        font-size: inherit !important;
      }
      .text-size-medium-3 {
        font-size: 15px !important;
      }
      .mexico-container {
        padding: 0 20px !important;
      }
      .benefits-sticky p {
        font-size: 15px !important;
      }
      /* How It Works */
      .step-card {
        padding: 20px !important;
        min-width: auto !important;
      }
      .step-card h4 {
        font-size: 15px !important;
      }
      .step-card p {
        font-size: 13px !important;
      }
      /* Testimonials */
      .testimonial-card {
        padding: 24px !important;
      }
      .testimonial-quote-card {
        padding: 20px !important;
      }
      .testimonial-quote-card p:first-child {
        font-size: 16px !important;
      }
      .testimonial-metric {
        font-size: 28px !important;
      }
      /* FAQs */
      .faq-subtitle {
        font-size: 15px !important;
      }
      .faq-question {
        font-size: 15px !important;
        padding: 20px !important;
      }
      .faq-answer-content {
        font-size: 14px !important;
        padding: 0 20px 20px !important;
      }
    }

    /* Mobile pequeño (479px) - Títulos: 38px */
    @media (max-width: 479px) {
      h1.heading-style-h1.hero-heading,
      h2.heading-style-h1.hero-heading,
      .benefits-sticky .heading-style-h1,
      .dark-bg .heading-style-h1.hero-heading,
      .faq-title,
      h1.heading-style-h1,
      h2.heading-style-h1,
      .hero-heading,
      h2.hero-heading {
        font-size: 38px !important;
        line-height: 1.2 !important;
      }

      h1.heading-style-h1.hero-heading *,
      h2.heading-style-h1.hero-heading *,
      h2.heading-style-h1 *,
      .hero-heading *,
      h2.hero-heading * {
        font-size: inherit !important;
      }

      /* Hide br tags on small mobile */
      h1.heading-style-h1.hero-heading br,
      h2.heading-style-h1.hero-heading br,
      .dark-bg .heading-style-h1.hero-heading br {
        display: none;
      }
      .text-size-medium-3 {
        font-size: 14px !important;
      }
      .hero-tag {
        font-size: 11px !important;
        padding: 6px 12px !important;
      }
      .hero-social-proof {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
      }
      .mexico-container {
        padding: 0 16px !important;
      }
      /* Benefits */
      .benefits-sticky p {
        font-size: 14px !important;
      }
      .benefit-card {
        padding: 20px !important;
      }
      .benefit-card h3 {
        font-size: 17px !important;
      }
      .benefit-card p {
        font-size: 14px !important;
      }
      /* Testimonials */
      .testimonials-section {
        padding: 60px 0 !important;
      }
      .testimonials-grid > div {
        height: 380px !important;
      }
      .testimonial-card {
        padding: 20px !important;
      }
      .testimonial-text {
        font-size: 14px !important;
      }
      .testimonial-quote-card p:first-child {
        font-size: 15px !important;
        margin-bottom: 12px !important;
      }
      .testimonial-metric {
        font-size: 24px !important;
      }
      /* FAQs */
      .faq-section {
        padding: 60px 0 !important;
      }
      .faq-subtitle {
        font-size: 14px !important;
      }
      .faq-question {
        font-size: 14px !important;
        padding: 16px !important;
      }
      .faq-answer-content {
        font-size: 13px !important;
        padding: 0 16px 16px !important;
      }
      /* CTAs - botones cortos, no full-width */
      .spacer-large._2-buttons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
      }
      .spacer-large._2-buttons a {
        width: auto !important;
        text-align: center !important;
      }
    }

    /* Features section responsive */
    @media (max-width: 991px) {
      .features-large-grid {
        grid-template-columns: 1fr !important;
      }
      .feature-card {
        min-height: auto !important;
      }
    }
    @media (max-width: 768px) {
      .feature-card h3 {
        font-size: 18px !important;
      }
      .feature-card p {
        font-size: 14px !important;
      }
      .feature-card > div:last-child {
        padding: 20px 24px !important;
      }
    }
    @media (max-width: 480px) {
      .feature-card {
        border-radius: 16px !important;
      }
      .feature-card > div:first-child > div:first-child {
        padding: 16px 20px !important;
        flex-wrap: wrap;
        gap: 8px;
      }
      .feature-card > div:last-child {
        padding: 16px 20px !important;
      }
      .feature-card h3 {
        font-size: 16px !important;
      }
    }

    /* How It Works responsive */
    @media (max-width: 480px) {
      .step-card {
        padding: 20px !important;
      }
      .step-card h3 {
        font-size: 16px !important;
        margin-bottom: 20px !important;
      }
      .step-card h3 br {
        display: none;
      }
    }

    /* Calculator responsive extra */
    @media (max-width: 480px) {
      .calc-metric-card {
        padding: 16px !important;
      }
    }
  


  /* Hide old Webflow modal completely */
  .modal-2,
  #modal,
  div[role="dialog"][aria-labelledby="Popup Modal"],
  .modal-bg-2,
  .signup-form-block {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Modal Styles */
  body.modal-open .navigation-component {
    visibility: hidden;
  }
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  }
  .modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .modal-container {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    width: 90%;
    max-width: 480px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 40px 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  }
  .modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  .modal-close:hover {
    background: #e5e5e5;
    transform: rotate(90deg);
  }
  .modal-close svg {
    width: 18px;
    height: 18px;
    color: #666;
  }
  .modal-content {
    text-align: center;
  }
  /* Phone input styles */
  .iti {
    width: 100%;
  }
  .iti__flag-container {
    border-right: 1px solid #e5e5e5;
  }
  .form-error {
    display: none;
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
  }
  .form-group.error input {
    border-color: #ef4444;
  }
  .form-group.error .form-error {
    display: block;
  }
  .modal-title {
    font-family: 'Geist', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px;
    line-height: 1.2;
  }
  .modal-form {
    text-align: left;
  }
  .form-group {
    margin-bottom: 20px;
  }
  .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
  }
  .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
  }
  .form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.1);
  }
  .form-group input::placeholder {
    color: #aaa;
  }
  .modal-submit {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
  }
}
