/* ==========================================
   HOME.CSS - KarimBuilds
   Hero Section + Bento Box Design
   ========================================== */

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding: calc(4rem + var(--space-sm)) 0 var(--space-md);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  margin: 0;
}

/* Container pour particules dans le hero */
#particles-hero {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0 !important;
}

/* Background shapes désactivées si particules sont actives */
.hero.particles-active .hero-background {
  display: none;
}

/* Background animé */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.hero-shape.shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43, 127, 217, 0.2) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: floatShape 25s ease-in-out infinite;
}

.hero-shape.shape-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29, 211, 199, 0.15) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: floatShape 30s ease-in-out infinite reverse;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(43, 127, 217, 0.08) 2px, transparent 2px);
  background-size: 80px 80px;
  animation: particleDrift 40s linear infinite;
  opacity: 0.3;
}

@keyframes particleDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(29, 211, 199, 0.1);
  border: 2px solid rgba(29, 211, 199, 0.3);
  border-radius: var(--radius-full);
  color: #0d9488;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  animation: fadeSlideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #1dd3c7;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  letter-spacing: -0.02em;
  animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.gradient-text {
  background: linear-gradient(135deg, 
    #1e5ba8 0%, 
    #2b7fd9 30%, 
    #5b4fb8 60%, 
    #1dd3c7 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.btn-hero {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(43, 127, 217, 0.25);
}

.btn-hero svg {
  transition: transform 0.3s;
}

.btn-hero:hover svg {
  transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
  margin-top: var(--space-md);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  font-weight: 600;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.hero-scroll-indicator svg {
  opacity: 0.5;
}

/* ===== BENTO BOX SECTION ===== */
.bento-section {
  padding: var(--space-xl) 0;
  background: white;
  position: relative;
  margin: 0;
}

.section-intro {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, #1e5ba8, #5b4fb8, #1dd3c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-lead {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
}

/* Bento Card Base */
.bento-card {
  position: relative;
  padding: var(--space-lg);
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(43, 127, 217, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(43, 127, 217, 0.15);
  border-color: var(--color-primary);
}

.bento-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.bento-card p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Card Large - Approche */
.card-large {
  grid-column: span 6;
  grid-row: span 2;
  background: linear-gradient(135deg, rgba(43, 127, 217, 0.03) 0%, rgba(91, 79, 184, 0.03) 100%);
  border: 2px solid rgba(43, 127, 217, 0.15);
}

.card-badge {
  display: inline-flex;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #2b7fd9, #5b4fb8);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-md);
  width: fit-content;
}

.card-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1.6;
}

.card-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
  margin-top: 0.2rem;
}

/* Card Service - Petites cartes */
.card-service {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
}

/* Centrer les deux dernières cartes service */
.card-automation {
  grid-column: 3 / 7;
}

.card-communication {
  grid-column: 7 / 11;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.card-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(43, 127, 217, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
  width: fit-content;
}

/* Card Visual - Code Window */
.card-visual {
  grid-column: span 6;
  background: #0f172a;
  border-color: #1e293b;
  padding: 0;
  overflow: hidden;
}

.card-visual:hover {
  border-color: var(--color-primary);
}

.code-window {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #475569;
}

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #10b981; }

.code-title {
  font-size: var(--font-size-sm);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-weight: 500;
}

.code-content {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.code-line {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.25rem;
}

.line-number {
  color: #475569;
  user-select: none;
  text-align: right;
  min-width: 1.5rem;
}

.code-text {
  color: #e2e8f0;
}

.code-keyword { color: #c084fc; }
.code-var { color: #60a5fa; }
.code-operator { color: #f472b6; }
.code-bracket { color: #fbbf24; }
.code-property { color: #34d399; }
.code-value { color: #fb923c; }

/* Card CTA Box - Centré et visible */
.card-cta-box {
  grid-column: 4 / 10;
  grid-row: span 1;
  background: linear-gradient(135deg, rgba(43, 127, 217, 0.05) 0%, rgba(29, 211, 199, 0.05) 100%);
  border: 2px solid rgba(43, 127, 217, 0.2);
  padding: var(--space-xl);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-box-content {
  max-width: 500px;
}

.cta-box-content h3 {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, #2b7fd9, #5b4fb8, #1dd3c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-box-content p {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.cta-box-content .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  text-decoration: none;
  transition: all 0.3s;
}

.cta-box-content .btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 127, 217, 0.25);
}

.cta-box-content .btn svg {
  transition: transform 0.3s;
}

.cta-box-content .btn:hover svg {
  transform: translateX(3px);
}

/* ===== METHOD SECTION ===== */
.method-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(180deg, white 0%, #fafbfc 100%);
}

.method-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 0;
  margin-top: var(--space-lg);
}

.method-step {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.method-connector {
  grid-column: span 1;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #1dd3c7);
  position: relative;
}

.method-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #1dd3c7;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.step-number {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2b7fd9, #5b4fb8);
  color: white;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  box-shadow: 0 8px 24px rgba(43, 127, 217, 0.3);
  transition: all 0.4s;
}

.method-step:hover .step-number {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 32px rgba(43, 127, 217, 0.4);
}

.step-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.step-content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== FINAL CTA ===== */
.final-cta {
  position: relative;
  padding: var(--space-xl) 0;
  margin-bottom: 0;
  background: linear-gradient(135deg, 
    #1e5ba8 0%, 
    #2b7fd9 25%, 
    #5b4fb8 50%, 
    #1dd3c7 75%, 
    #2de2d6 100%);
  background-size: 200% auto;
  color: white;
  overflow: hidden;
  animation: gradientSlide 15s ease infinite;
}

/* Remove gaps between sections */
body main#content {
  margin: 0;
  padding: 0;
}

body .site-footer {
  margin-top: 0 !important;
}

@keyframes gradientSlide {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.cta-shape.shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  top: -200px;
  right: -100px;
  animation: floatCTA 20s ease-in-out infinite;
}

.cta-shape.shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  bottom: -150px;
  left: -100px;
  animation: floatCTA 25s ease-in-out infinite reverse;
}

@keyframes floatCTA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(50px, -50px); }
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.cta-content h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  margin-bottom: var(--space-sm);
  color: white;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  border-radius: var(--radius-lg);
}

.final-cta .btn-primary {
  background: white;
  color: #2b7fd9;
  border: none;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.final-cta .btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  color: #2b7fd9;
  background: #ffffff;
}

.final-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.final-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Services Link in CTA */
.cta-services-link {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.cta-services-link a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  transition: all 0.3s;
}

.cta-services-link a:hover {
  border-bottom-color: white;
  opacity: 1;
}

/* ===== FORMULAIRE DE CONTACT DANS MODAL ===== */
.modal .contact-form {
  margin: 0;
  max-width: 100%;
}

.modal .field {
  margin-bottom: 1.25rem;
}

.modal .field.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.modal .field label {
  display: block;
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.modal .field input,
.modal .field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: white;
}

.modal .field input:focus,
.modal .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(43, 127, 217, 0.1);
}

.modal .field textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-sans);
}

.modal .field-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.modal .contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: var(--font-size-base);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .card-large {
    grid-column: span 6;
  }
  
  .card-service {
    grid-column: span 3;
  }
  
  .card-automation {
    grid-column: 1 / 4;
  }
  
  .card-communication {
    grid-column: 4 / 7;
  }
  
  .card-visual {
    grid-column: span 6;
  }
  
  .card-cta-box {
    grid-column: 1 / 7;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 45vh;
    padding: calc(4rem + var(--space-sm)) 0 var(--space-md);
  }
  
  .hero-title {
    font-size: 1.85rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .btn-hero {
    width: 100%;
    max-width: 320px;
  }
  
  .hero-stats {
    gap: var(--space-md);
  }
  
  .stat-divider {
    display: none;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .card-large,
  .card-service,
  .card-visual,
  .card-cta-box {
    grid-column: span 1;
    grid-row: auto;
  }
  
  .card-cta-box {
    padding: var(--space-xl);
  }
  
  .cta-box-content h3 {
    font-size: 2rem;
  }
  
  .cta-box-content p {
    font-size: 1.1rem;
  }
  
  .card-cta-box .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .method-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .method-connector {
    display: none;
  }
  
  .cta-content {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }
  
  .cta-content h2 {
    font-size: 1.85rem;
    margin-bottom: var(--space-sm);
  }
  
  .cta-content p {
    font-size: 1rem;
    margin-bottom: var(--space-md);
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .btn-large {
    width: 100%;
    max-width: 300px;
    padding: 0.9rem 2rem;
  }
}

/* ===== MODAL COMPACT ===== */
.modal-content {
  max-width: 480px !important;
  padding: var(--space-md) !important;
  border-radius: var(--radius-lg) !important;
}

.modal-title {
  font-size: var(--font-size-xl) !important;
  margin-bottom: var(--space-md) !important;
  font-weight: 800;
}

.modal-subtitle {
  font-size: var(--font-size-sm) !important;
  margin-bottom: var(--space-md) !important;
  color: var(--color-text-light);
}

.modal-close {
  top: 0.75rem !important;
  right: 0.75rem !important;
  padding: 0.5rem !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-size: 1.5rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--color-bg-light);
  color: var(--color-text) !important;
}

/* Contact Form in Modal */
.modal-content .contact-form {
  margin: 0;
  max-width: 100%;
}

.modal-content .field {
  margin-bottom: var(--space-sm);
}

.modal-content .field.hp {
  display: none;
}

.modal-content .field label {
  display: block;
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.modal-content .field input,
.modal-content .field textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: var(--font-size-sm);
  font-family: var(--font-sans);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: white;
}

.modal-content .field input:focus,
.modal-content .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(43, 127, 217, 0.1);
}

.modal-content .field textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-content .field-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 0.375rem;
  margin-bottom: 0;
}

.modal-content .contact-form .btn {
  width: 100%;
  margin-top: var(--space-sm);
  font-weight: 600;
}