/* =============================================
   Mini-Sites — Fête Joyeuse Design System
   A warm, celebratory aesthetic for event pages
   ============================================= */

/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  --ms-cream: #FFF8F0;
  --ms-cream-alt: #FFF1E0;
  --ms-warm-white: #FFFDFB;
  --ms-text: #2D2A32;
  --ms-text-soft: #5E5768;
  --ms-text-muted: #9B93A8;
  --ms-border: #EDE6DA;

  --ms-shadow-sm: 0 1px 3px rgba(100, 60, 20, 0.05);
  --ms-shadow-md: 0 4px 16px rgba(100, 60, 20, 0.07);
  --ms-shadow-lg: 0 12px 32px rgba(100, 60, 20, 0.10);
  --ms-shadow-xl: 0 20px 50px rgba(100, 60, 20, 0.14);

  --ms-radius: 16px;
  --ms-radius-lg: 24px;

  --ms-display-font: var(--mini-site-display-font, 'Playfair Display'), Georgia, serif;
}

/* ========================================
   BASE & RESET
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--mini-site-font), sans-serif;
  line-height: 1.65;
  color: var(--ms-text);
  background: var(--ms-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--ms-display-font);
  line-height: 1.15;
  color: var(--ms-text);
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ========================================
   HEADER — Warm glassmorphic
   ======================================== */
.mini-site-header {
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(237, 230, 218, 0.6);
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.mini-site-header.scrolled {
  box-shadow: var(--ms-shadow-md);
  background: rgba(255, 248, 240, 0.95);
}

.mini-site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-site-header .logo-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.mini-site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.mini-site-header .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--mini-site-primary), var(--mini-site-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--mini-site-primary) 30%, transparent);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mini-site-header .logo:hover .logo-icon {
  transform: rotate(-6deg) scale(1.08);
}

.mini-site-header .logo-text {
  font-family: var(--ms-display-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ms-text);
}

.mini-site-header nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mini-site-header nav a {
  color: var(--ms-text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.mini-site-header nav a:hover {
  color: var(--mini-site-primary);
  background: color-mix(in srgb, var(--mini-site-primary) 8%, white);
}

.mini-site-header nav a.cta-nav {
  background: var(--mini-site-primary);
  color: white;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--mini-site-primary) 30%, transparent);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mini-site-header nav a.cta-nav:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--mini-site-primary) 40%, transparent);
  color: white;
}

/* ========================================
   ACTEUR FÊTE BADGE (Header)
   ======================================== */
.af-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: linear-gradient(135deg, #FFF8F0, #FFF1E0);
  border: 1px solid #EDE6DA;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.af-badge:hover {
  border-color: #D4A574;
  box-shadow: 0 2px 8px rgba(180, 120, 60, 0.12);
  transform: translateY(-1px);
}

.af-badge-par {
  font-size: 0.72rem;
  color: var(--ms-text-muted);
  font-weight: 400;
}

.af-badge-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #B8703F;
  letter-spacing: -0.01em;
}

/* ========================================
   ACTEUR FÊTE TRUST BAND
   ======================================== */
.af-trust-band {
  background: white;
  border-top: 1px solid var(--ms-border);
  border-bottom: 1px solid var(--ms-border);
  padding: 1.4rem 0;
}

.af-trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.af-trust-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.af-trust-brand:hover {
  opacity: 0.85;
}

.af-trust-seal {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #D4A574, #B8703F);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 3px 10px rgba(180, 120, 60, 0.25);
  flex-shrink: 0;
}

.af-trust-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.af-trust-brand-name {
  font-family: var(--ms-display-font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ms-text);
}

.af-trust-brand-sub {
  font-size: 0.78rem;
  color: var(--ms-text-muted);
  font-weight: 400;
}

.af-trust-stats {
  display: flex;
  gap: 2.5rem;
}

.af-trust-stat {
  text-align: center;
}

.af-trust-stat-value {
  font-family: var(--ms-display-font);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ms-text);
  line-height: 1.2;
}

.af-trust-stat-label {
  font-size: 0.75rem;
  color: var(--ms-text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ========================================
   ACTEUR FÊTE FOOTER BANNER
   ======================================== */
.af-footer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, #2D2833, #342E3C);
  border: 1px solid #3D3645;
  border-radius: var(--ms-radius);
}

.af-footer-banner-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.af-footer-logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #D4A574, #B8703F);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.af-footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.af-footer-logo-text strong {
  color: #F0ECF5;
  font-size: 1rem;
  font-family: var(--ms-display-font);
  font-weight: 700;
}

.af-footer-logo-text span {
  color: #8A8296;
  font-size: 0.8rem;
}

.af-footer-banner-link {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(212, 165, 116, 0.15);
  color: #D4A574;
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.af-footer-banner-link:hover {
  background: rgba(212, 165, 116, 0.25);
  border-color: rgba(212, 165, 116, 0.5);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .af-badge {
    display: none;
  }

  .af-trust-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .af-trust-brand {
    flex-direction: column;
    text-align: center;
  }

  .af-trust-brand-text {
    align-items: center;
  }

  .af-trust-stats {
    gap: 1.5rem;
  }

  .af-trust-stat-value {
    font-size: 1rem;
  }

  .af-footer-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .af-footer-banner-brand {
    flex-direction: column;
  }

  .af-footer-logo-text {
    align-items: center;
  }
}

/* ========================================
   HERO SECTION — Bold gradient + confetti
   ======================================== */
.hero-wrap {
  position: relative;
}

.hero-section {
  background: linear-gradient(
    140deg,
    var(--mini-site-primary) 0%,
    color-mix(in srgb, var(--mini-site-primary) 55%, var(--mini-site-secondary)) 55%,
    var(--mini-site-secondary) 100%
  );
  color: white;
  padding: 5.5rem 2rem 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Soft radial glows */
.hero-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Hero with uploaded image */
.hero-section.with-image {
  background-size: cover;
  background-position: center;
}

.hero-section.with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--mini-site-primary) 80%, black) 0%,
    color-mix(in srgb, var(--mini-site-secondary) 60%, rgba(0,0,0,0.3)) 100%
  );
  border-radius: 0;
}

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

.hero-section h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hero-section .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 1.5rem;
  opacity: 0.93;
  font-weight: 400;
  line-height: 1.5;
}

.hero-section .intro-text {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.88;
}

.hero-section .intro-text p {
  margin-bottom: 0;
}

/* ========================================
   FLOATING DECORATIONS — Confetti vibes
   ======================================== */
.hero-decorations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.deco {
  position: absolute;
  border-radius: 50%;
}

/* Each deco shape has unique position, size, color, animation */
.deco-1 {
  width: 14px; height: 14px;
  background: rgba(255, 255, 255, 0.35);
  top: 12%; left: 6%;
  animation: float-a 6s ease-in-out infinite;
}
.deco-2 {
  width: 10px; height: 10px;
  background: var(--mini-site-secondary);
  opacity: 0.5;
  top: 25%; left: 14%;
  border-radius: 3px;
  transform: rotate(45deg);
  animation: float-b 7s ease-in-out infinite;
}
.deco-3 {
  width: 20px; height: 20px;
  background: rgba(255, 255, 255, 0.2);
  top: 55%; left: 8%;
  animation: float-c 8s ease-in-out infinite;
}
.deco-4 {
  width: 8px; height: 8px;
  background: rgba(255, 255, 255, 0.45);
  top: 75%; left: 22%;
  animation: float-a 5.5s ease-in-out infinite;
  animation-delay: -2s;
}
.deco-5 {
  width: 12px; height: 12px;
  background: var(--mini-site-secondary);
  opacity: 0.4;
  top: 18%; right: 12%;
  animation: float-b 6.5s ease-in-out infinite;
  animation-delay: -1s;
}
.deco-6 {
  width: 18px; height: 18px;
  background: rgba(255, 255, 255, 0.18);
  top: 45%; right: 6%;
  border-radius: 4px;
  transform: rotate(45deg);
  animation: float-c 7.5s ease-in-out infinite;
  animation-delay: -3s;
}
.deco-7 {
  width: 6px; height: 6px;
  background: rgba(255, 255, 255, 0.55);
  top: 65%; right: 18%;
  animation: float-a 5s ease-in-out infinite;
  animation-delay: -4s;
}
.deco-8 {
  width: 24px; height: 24px;
  background: rgba(255, 255, 255, 0.1);
  top: 30%; left: 45%;
  animation: float-b 9s ease-in-out infinite;
  animation-delay: -5s;
}
.deco-9 {
  width: 10px; height: 10px;
  background: var(--mini-site-secondary);
  opacity: 0.35;
  top: 80%; left: 55%;
  border-radius: 3px;
  transform: rotate(45deg);
  animation: float-c 6s ease-in-out infinite;
  animation-delay: -1.5s;
}
.deco-10 {
  width: 16px; height: 16px;
  background: rgba(255, 255, 255, 0.25);
  top: 10%; right: 30%;
  animation: float-a 8s ease-in-out infinite;
  animation-delay: -3.5s;
}

@keyframes float-a {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(6deg); }
  66% { transform: translateY(8px) rotate(-3deg); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0) translateX(0) rotate(45deg); }
  25% { transform: translateY(-12px) translateX(8px) rotate(51deg); }
  75% { transform: translateY(6px) translateX(-6px) rotate(39deg); }
}

@keyframes float-c {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.1); }
}

/* ========================================
   WAVE SEPARATOR
   ======================================== */
.hero-wave {
  position: relative;
  margin-top: -2px;
  line-height: 0;
  background: transparent;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 70px;
}

/* ========================================
   CTA BUTTONS — Playful with shimmer
   ======================================== */
.cta-button {
  display: inline-block;
  background: white;
  color: var(--mini-site-primary);
  padding: 1rem 2.5rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: none;
  animation: btn-shimmer 4s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes btn-shimmer {
  0%, 100% { left: -100%; }
  15% { left: 150%; }
  16% { left: -100%; }
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: translateY(-1px) scale(1);
}

/* Filled variant (used in bottom CTA and profile) */
.cta-button-filled {
  display: inline-block;
  background: var(--mini-site-primary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--mini-site-primary) 30%, transparent);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-button-filled::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: btn-shimmer 5s ease-in-out infinite;
  animation-delay: 3s;
}

.cta-button-filled:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--mini-site-primary) 40%, transparent);
  color: white;
}

/* Outline variant */
.cta-button-outline {
  display: inline-block;
  background: transparent;
  color: var(--mini-site-primary);
  padding: 0.9rem 2.2rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid color-mix(in srgb, var(--mini-site-primary) 40%, transparent);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.cta-button-outline:hover {
  background: var(--mini-site-primary);
  color: white;
  border-color: var(--mini-site-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--mini-site-primary) 25%, transparent);
}

/* ========================================
   TRUST / REASSURANCE SECTION
   ======================================== */
.trust-section {
  padding: 3.5rem 2rem;
  background: var(--ms-warm-white);
  border-bottom: 1px solid var(--ms-border);
  position: relative;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--mini-site-primary) 12%, white),
    color-mix(in srgb, var(--mini-site-secondary) 10%, white)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trust-item:hover .trust-icon {
  transform: translateY(-4px) rotate(-3deg);
}

.trust-title {
  font-family: var(--ms-display-font);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ms-text);
}

.trust-desc {
  font-size: 0.9rem;
  color: var(--ms-text-soft);
  line-height: 1.55;
  max-width: 260px;
}

/* ========================================
   PROFILES SECTION
   ======================================== */
.profiles-section {
  padding: 5rem 2rem;
  background: var(--ms-cream);
  position: relative;
}

.profiles-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--ms-text);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* Decorative underline */
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--mini-site-primary), var(--mini-site-secondary));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.section-header .section-subtitle {
  font-size: 1.1rem;
  color: var(--ms-text-muted);
  font-weight: 400;
  margin-top: 0.5rem;
}

.profiles-section .profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

/* ========================================
   PROVIDER CARD — Warm with gradient accent
   ======================================== */
.provider-card {
  background: white;
  border-radius: var(--ms-radius);
  overflow: hidden;
  box-shadow: var(--ms-shadow-sm);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--ms-border);
}

/* Gradient top accent — appears on hover */
.provider-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mini-site-primary), var(--mini-site-secondary));
  border-radius: var(--ms-radius) var(--ms-radius) 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.provider-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ms-shadow-xl);
  border-color: transparent;
}

.provider-card:hover::before {
  opacity: 1;
}

.provider-card .card-image-wrap {
  position: relative;
  overflow: hidden;
}

.provider-card .card-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--ms-cream) 0%, var(--ms-cream-alt) 100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.provider-card:hover .card-image {
  transform: scale(1.06);
}

.provider-card .card-image-placeholder {
  width: 100%;
  height: 210px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--mini-site-primary) 6%, var(--ms-cream)) 0%,
    color-mix(in srgb, var(--mini-site-secondary) 8%, var(--ms-cream)) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.provider-card .card-image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.25;
  color: var(--ms-text-muted);
}

.provider-card .card-body {
  padding: 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.provider-card .card-title {
  font-family: var(--ms-display-font);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ms-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-card .card-tagline {
  color: var(--ms-text-soft);
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.provider-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ms-border);
}

.provider-card .card-location {
  color: var(--ms-text-muted);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.provider-card .card-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--mini-site-primary);
}

.provider-card .card-arrow {
  color: var(--mini-site-primary);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.provider-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   CTA BOTTOM SECTION
   ======================================== */
.cta-bottom-section {
  text-align: center;
  padding: 4.5rem 2rem;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--mini-site-primary) 6%, var(--ms-warm-white)),
    color-mix(in srgb, var(--mini-site-secondary) 8%, var(--ms-warm-white))
  );
  border-top: 1px solid var(--ms-border);
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.cta-bottom-section::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mini-site-primary) 6%, transparent);
  top: -60px;
  left: -40px;
  pointer-events: none;
}

.cta-bottom-section::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mini-site-secondary) 8%, transparent);
  bottom: -50px;
  right: -30px;
  pointer-events: none;
}

.cta-bottom-section .cta-content {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-bottom-section h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ms-text);
  margin-bottom: 0.7rem;
}

.cta-bottom-section p {
  color: var(--ms-text-soft);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   PROFILE DETAIL PAGE
   ======================================== */
.profile-detail {
  max-width: 900px;
  margin: 2.5rem auto 3.5rem;
  padding: 0 1.5rem;
}

.profile-detail .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  color: var(--ms-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  padding: 0.4rem 0;
}

.profile-detail .back-link:hover {
  color: var(--mini-site-primary);
  gap: 0.6rem;
}

.profile-detail .profile-card {
  background: white;
  border-radius: var(--ms-radius-lg);
  overflow: hidden;
  box-shadow: var(--ms-shadow-md);
  border: 1px solid var(--ms-border);
}

.profile-detail .profile-hero {
  background: linear-gradient(
    145deg,
    var(--mini-site-primary) 0%,
    color-mix(in srgb, var(--mini-site-primary) 50%, var(--mini-site-secondary)) 60%,
    var(--mini-site-secondary) 100%
  );
  padding: 3.5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative dots in profile hero */
.profile-detail .profile-hero::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -20px;
  right: -20px;
  pointer-events: none;
}

.profile-detail .profile-hero::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  bottom: -10px;
  left: 10%;
  pointer-events: none;
}

.profile-detail .profile-hero img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.3rem;
  position: relative;
}

.profile-detail .profile-hero h1 {
  font-size: 2.1rem;
  color: white;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
}

.profile-detail .profile-hero .tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  position: relative;
}

.profile-detail .profile-body {
  padding: 2.5rem;
}

.profile-detail .profile-body p {
  line-height: 1.8;
  color: var(--ms-text-soft);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.profile-detail .profile-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ms-text-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.2rem;
  background: var(--ms-cream);
  border-radius: 12px;
  border: 1px solid var(--ms-border);
}

.profile-detail .profile-location svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--mini-site-primary);
}

.profile-detail .profile-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ms-border);
  flex-wrap: wrap;
}

/* ========================================
   QUOTE REQUEST PAGE
   ======================================== */
.quote-hero {
  background: linear-gradient(
    145deg,
    var(--mini-site-primary) 0%,
    color-mix(in srgb, var(--mini-site-primary) 50%, var(--mini-site-secondary)) 60%,
    var(--mini-site-secondary) 100%
  );
  padding: 3.5rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.quote-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -8%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.quote-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.quote-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.7rem;
  position: relative;
  color: white;
}

.quote-hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  line-height: 1.6;
}

.quote-steps {
  padding: 2.5rem 2rem;
  background: var(--ms-warm-white);
  border-bottom: 1px solid var(--ms-border);
}

.quote-steps .container {
  max-width: 900px;
  margin: 0 auto;
}

.quote-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.quote-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}

.quote-step-number {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mini-site-primary), var(--mini-site-secondary));
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--mini-site-primary) 25%, transparent);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quote-step:hover .quote-step-number {
  transform: translateY(-3px) rotate(-3deg);
}

.quote-step-title {
  font-family: var(--ms-display-font);
  font-weight: 700;
  color: var(--ms-text);
  font-size: 0.95rem;
}

.quote-step-desc {
  font-size: 0.88rem;
  color: var(--ms-text-soft);
  line-height: 1.55;
}

.quote-form-wrap {
  padding: 3rem 2rem;
  background: var(--ms-cream);
}

.quote-form-wrap .container {
  max-width: 750px;
  margin: 0 auto;
}

.quote-form-wrap .card {
  background: white;
  border-radius: var(--ms-radius);
  box-shadow: var(--ms-shadow-sm);
  border: 1px solid var(--ms-border);
}

/* ========================================
   FOOTER — Warm dark
   ======================================== */
.mini-site-footer {
  background: #1E1A24;
  color: #B8B0C4;
  padding: 4rem 0 1.5rem;
  margin-top: 0;
}

.mini-site-footer .footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #2D2833;
}

.mini-site-footer .footer-section h4 {
  font-family: var(--ms-display-font);
  color: #F0ECF5;
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.mini-site-footer .footer-section p {
  margin-bottom: 0.5rem;
  color: #8A8296;
  line-height: 1.65;
  font-size: 0.9rem;
}

.mini-site-footer .footer-section ul {
  list-style: none;
  padding: 0;
}

.mini-site-footer .footer-section ul li {
  margin-bottom: 0.5rem;
}

.mini-site-footer .footer-section a {
  color: #8A8296;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.mini-site-footer .footer-section a:hover {
  color: var(--mini-site-secondary);
}

.mini-site-footer .social-links {
  display: flex;
  gap: 0.8rem;
}

.mini-site-footer .social-links li {
  margin-bottom: 0 !important;
}

.mini-site-footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2D2833;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0;
  color: #8A8296;
}

.mini-site-footer .social-links a svg {
  color: #8A8296;
  transition: color 0.2s ease;
}

.mini-site-footer .social-links a:hover {
  background: linear-gradient(135deg, var(--mini-site-primary), var(--mini-site-secondary));
  transform: translateY(-3px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--mini-site-primary) 30%, transparent);
}

.mini-site-footer .social-links a:hover svg {
  color: white;
}

.mini-site-footer .footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  color: #5E5768;
  font-size: 0.85rem;
}

.mini-site-footer .footer-bottom a {
  color: #8A8296;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.mini-site-footer .footer-bottom a:hover {
  color: var(--mini-site-secondary);
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
  padding: 0.9rem 1.3rem;
  border-radius: 12px;
  margin: 1rem 2rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-danger {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--ms-text-muted);
}

.empty-state p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.empty-state::before {
  content: '🎉';
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-section {
    padding: 4rem 1.5rem 5.5rem;
  }

  .hero-section .tagline {
    font-size: 1.1rem;
  }

  .hero-section .intro-text {
    font-size: 0.95rem;
  }

  .hero-wave svg {
    height: 40px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trust-item {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }

  .trust-icon {
    flex-shrink: 0;
  }

  .profiles-section {
    padding: 3rem 1rem;
  }

  .profiles-section .profiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .provider-card .card-image,
  .provider-card .card-image-placeholder {
    height: 160px;
  }

  .provider-card .card-body {
    padding: 1rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .mini-site-header .container {
    flex-direction: row;
    gap: 0.5rem;
  }

  .mini-site-header .logo-text {
    font-size: 1rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mini-site-header nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  .mini-site-header nav a.cta-nav {
    padding: 0.4rem 0.8rem;
  }

  .mini-site-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quote-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .quote-hero h1 {
    font-size: 1.8rem;
  }

  .profile-detail .profile-hero {
    padding: 2.5rem 1.5rem 3.5rem;
  }

  .profile-detail .profile-hero h1 {
    font-size: 1.6rem;
  }

  .profile-detail .profile-hero img {
    width: 120px;
    height: 120px;
  }

  .profile-detail .profile-body {
    padding: 1.5rem;
  }

  .profile-detail .profile-actions {
    flex-direction: column;
  }

  .cta-bottom-section {
    padding: 3rem 1.5rem;
  }

  .cta-bottom-section h3 {
    font-size: 1.35rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Hide some decorations on mobile */
  .deco-3, .deco-6, .deco-8, .deco-10 {
    display: none;
  }
}

@media (max-width: 480px) {
  .provider-card .card-image,
  .provider-card .card-image-placeholder {
    height: 130px;
  }

  .provider-card .card-body {
    padding: 0.85rem;
  }

  .provider-card .card-title {
    font-size: 0.95rem;
  }

  .cta-button {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
  }

  .cta-button-filled {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
  }
}

/* ========================================
   ANIMATIONS — Reduced motion safe
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .hero-section .hero-content {
    animation: hero-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes hero-enter {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Trust items stagger */
  .trust-item {
    animation: fade-up 0.5s ease-out both;
  }
  .trust-item:nth-child(1) { animation-delay: 0.1s; }
  .trust-item:nth-child(2) { animation-delay: 0.2s; }
  .trust-item:nth-child(3) { animation-delay: 0.3s; }

  /* Provider cards stagger */
  .provider-card {
    animation: card-enter 0.45s ease-out both;
  }
  .provider-card:nth-child(1) { animation-delay: 0.05s; }
  .provider-card:nth-child(2) { animation-delay: 0.1s; }
  .provider-card:nth-child(3) { animation-delay: 0.15s; }
  .provider-card:nth-child(4) { animation-delay: 0.2s; }
  .provider-card:nth-child(5) { animation-delay: 0.25s; }
  .provider-card:nth-child(6) { animation-delay: 0.3s; }
  .provider-card:nth-child(7) { animation-delay: 0.35s; }
  .provider-card:nth-child(8) { animation-delay: 0.4s; }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes card-enter {
    from {
      opacity: 0;
      transform: translateY(20px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Section header reveal */
  .section-header {
    animation: fade-up 0.6s ease-out both;
  }

  /* CTA bottom section */
  .cta-bottom-section .cta-content {
    animation: fade-up 0.6s ease-out both;
  }

  /* Profile page animations */
  .profile-detail .profile-card {
    animation: card-enter 0.5s ease-out both;
    animation-delay: 0.1s;
  }

  /* Quote page animations */
  .quote-step {
    animation: fade-up 0.5s ease-out both;
  }
  .quote-step:nth-child(1) { animation-delay: 0.1s; }
  .quote-step:nth-child(2) { animation-delay: 0.2s; }
  .quote-step:nth-child(3) { animation-delay: 0.3s; }
}

/* Disable floating decorations when reduced motion */
@media (prefers-reduced-motion: reduce) {
  .deco {
    animation: none !important;
  }

  .cta-button::after,
  .cta-button-filled::after {
    animation: none !important;
  }
}

/* ========================================
   ABOUT / CONTENT PAGE
   ======================================== */
.about-hero {
  background: linear-gradient(
    140deg,
    var(--mini-site-primary) 0%,
    color-mix(in srgb, var(--mini-site-primary) 55%, var(--mini-site-secondary)) 55%,
    var(--mini-site-secondary) 100%
  );
  color: white;
  padding: 4rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

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

.about-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.about-hero .tagline {
  font-size: 1.15rem;
  opacity: 0.92;
  font-weight: 400;
}

.about-content-section {
  padding: 4rem 2rem;
  background: var(--ms-warm-white);
}

.about-content-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.about-body {
  margin-bottom: 4rem;
}

.about-text {
  background: white;
  border-radius: var(--ms-radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--ms-shadow-sm);
  border: 1px solid var(--ms-border);
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ms-text-soft);
  margin-bottom: 1.2rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--ms-text);
  font-weight: 600;
}

.about-featured {
  margin-top: 3rem;
}

.about-featured h2 {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
}

.about-featured h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--mini-site-primary), var(--mini-site-secondary));
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

.about-featured .profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.mt-3 { margin-top: 1.5rem; }

@media (max-width: 768px) {
  .about-hero {
    padding: 3rem 1.5rem 3.5rem;
  }

  .about-text {
    padding: 1.5rem;
  }

  .about-featured .profiles-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FORM STYLES — Bootstrap-compatible
   Re-styles the shared quote request form
   without needing Bootstrap CSS
   ======================================== */

/* Grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.col-sm-4,
.col-sm-6,
.col-sm-12,
.col-md-6 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 576px) {
  .col-sm-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

/* Display utilities */
.d-none { display: none !important; }

@media (min-width: 576px) {
  .d-sm-block { display: block !important; }
}

/* Flexbox utilities */
.d-flex { display: flex !important; }
.flex-fill { flex: 1 1 auto !important; }
.ms-auto { margin-left: auto !important; }
.ms-3 { margin-left: 1rem !important; }

/* Spacing utilities */
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.p-4 { padding: 2rem !important; }

/* Form wrapper */
.qr-form-wrapper {
  max-width: 100%;
}

/* Form card in quote page */
.quote-form-wrap .card {
  background: white;
  border-radius: var(--ms-radius-lg);
  box-shadow: var(--ms-shadow-md);
  border: 1px solid var(--ms-border);
  overflow: hidden;
}

/* Section headers inside form */
.qr-form-wrapper h5,
.quote-form-wrap h5 {
  font-family: var(--ms-display-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ms-text);
  margin-top: 1.8rem;
  margin-bottom: 0.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ms-border);
}

.qr-form-wrapper h5:first-of-type {
  margin-top: 0;
}

/* Muted text */
.text-sm {
  font-size: 0.9rem;
}

.text-muted {
  color: var(--ms-text-muted) !important;
}

.text-sm.text-muted {
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* Form groups */
.form-group {
  margin-bottom: 1.2rem;
}

/* Labels */
.form-group > label,
.form-label,
.form-group .control-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ms-text);
  margin-bottom: 0.35rem;
}

.form-group > label abbr {
  color: var(--mini-site-primary);
  text-decoration: none;
  margin-left: 2px;
}

/* Inputs, selects, textareas */
.form-control,
.qr-form-wrapper input[type="text"],
.qr-form-wrapper input[type="email"],
.qr-form-wrapper input[type="tel"],
.qr-form-wrapper input[type="number"],
.qr-form-wrapper input[type="date"],
.qr-form-wrapper input[type="time"],
.qr-form-wrapper input[type="url"],
.qr-form-wrapper select,
.qr-form-wrapper textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ms-text);
  background: white;
  border: 1.5px solid var(--ms-border);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.qr-form-wrapper select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%235E5768' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.form-control:focus,
.qr-form-wrapper input:focus,
.qr-form-wrapper select:focus,
.qr-form-wrapper textarea:focus {
  border-color: var(--mini-site-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mini-site-primary) 12%, transparent);
}

.qr-form-wrapper textarea {
  resize: vertical;
  min-height: 100px;
}

/* Input group (for budget with € append) */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control,
.input-group input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  flex: 1;
}

.input-group-text,
.input-group .input-group-append span,
.input-group span:last-child {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ms-text-soft);
  background: var(--ms-cream);
  border: 1.5px solid var(--ms-border);
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

/* Hints */
.form-group .hint,
.form-text {
  font-size: 0.82rem;
  color: var(--ms-text-muted);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* Errors */
.form-group.has-error .form-control,
.form-group.field_with_errors input,
.form-group.field_with_errors select,
.form-group.field_with_errors textarea {
  border-color: #E53E3E;
}

.form-group .error-message,
.form-group .help-block {
  font-size: 0.82rem;
  color: #E53E3E;
  margin-top: 0.3rem;
}

.field_with_errors {
  display: contents;
}

/* Error notification */
.alert.alert-danger ul {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
}

.alert.alert-danger ul li {
  margin-bottom: 0.25rem;
}

/* Checkboxes */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0;
}

.form-check-input,
.qr-form-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  border: 1.5px solid var(--ms-border);
  border-radius: 5px;
  appearance: none;
  -webkit-appearance: none;
  background: white;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-block;
}

.form-check-input:checked,
.qr-form-wrapper input[type="checkbox"]:checked {
  background: var(--mini-site-primary);
  border-color: var(--mini-site-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form-check-label {
  font-size: 0.92rem;
  color: var(--ms-text-soft);
  cursor: pointer;
  line-height: 1.4;
}

/* Boolean form group — SimpleForm wraps in .form-group */
.form-group.boolean {
  margin-bottom: 1rem;
}

/* Hidden fields */
input[type="hidden"] {
  display: none;
}

/* Submit button */
.qr-form-wrapper .btn,
.qr-form-wrapper button[type="submit"] {
  display: inline-block;
  background: var(--mini-site-primary);
  color: white;
  padding: 0.85rem 2.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--mini-site-primary) 30%, transparent);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-form-wrapper .btn:hover,
.qr-form-wrapper button[type="submit"]:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--mini-site-primary) 40%, transparent);
}

/* Text block section */
.text-block {
  margin-bottom: 0.5rem;
}

/* Quote form specific responsive */
@media (max-width: 575px) {
  .p-4 {
    padding: 1.25rem !important;
  }

  .col-sm-4,
  .col-sm-6,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .qr-form-wrapper .btn,
  .qr-form-wrapper button[type="submit"] {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   TOM SELECT OVERRIDES — Warm design match
   ======================================== */
.ts-wrapper.single .ts-control {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--ms-border);
  border-radius: 10px;
  background: white;
  min-height: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ts-wrapper.single .ts-control:focus,
.ts-wrapper.single.focus .ts-control {
  border-color: var(--mini-site-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mini-site-primary) 12%, transparent);
}

.ts-dropdown {
  border: 1.5px solid var(--ms-border);
  border-radius: 10px;
  box-shadow: var(--ms-shadow-lg);
  margin-top: 4px;
  overflow: hidden;
}

.ts-dropdown .option {
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
  transition: background 0.15s ease;
}

.ts-dropdown .option.active,
.ts-dropdown .option:hover {
  background: color-mix(in srgb, var(--mini-site-primary) 8%, white);
  color: var(--ms-text);
}

.ts-dropdown .no-results {
  padding: 0.8rem 1rem;
  color: var(--ms-text-muted);
  font-size: 0.9rem;
}

.ts-wrapper .ts-control > input {
  font-size: 0.95rem;
}

/* Profile hero d-flex layout */
.profile-detail .profile-hero.d-flex {
  display: flex !important;
  align-items: center;
  gap: 2rem;
}

.profile-detail .profile-hero.d-flex img {
  margin-bottom: 0;
}

.profile-detail .profile-hero.d-flex .ms-auto {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 768px) {
  .profile-detail .profile-hero.d-flex {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-detail .profile-hero.d-flex .ms-auto {
    margin-left: 0;
    text-align: center;
  }
}

/* ========================================
   CITIES SECTION
   ======================================== */
.cities-section {
  padding: 4rem 0;
  background: var(--ms-warm-white);
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.city-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 14px;
  border: 1.5px solid var(--ms-border);
  color: var(--ms-text);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.city-card:hover {
  border-color: var(--mini-site-primary);
  transform: translateY(-3px);
  box-shadow: var(--ms-shadow-md);
}

.city-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--mini-site-primary) 10%, white);
  color: var(--mini-site-primary);
  flex-shrink: 0;
}

.city-card-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ========================================
   NAV DROPDOWN (Cities)
   ======================================== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: var(--ms-text-soft);
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--mini-site-primary);
  background: color-mix(in srgb, var(--mini-site-primary) 6%, transparent);
}

.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-top: 4px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  background: white;
  border: 1.5px solid var(--ms-border);
  border-radius: 12px;
  box-shadow: var(--ms-shadow-lg);
  padding: 0.5rem;
  z-index: 100;
  margin-top: 4px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  color: var(--ms-text-soft);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: color-mix(in srgb, var(--mini-site-primary) 8%, white);
  color: var(--mini-site-primary);
}

@media (max-width: 768px) {
  .cities-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }

  .city-card {
    padding: 0.85rem 1rem;
  }

  .nav-dropdown-menu {
    left: auto;
    right: 0;
    transform: none;
  }
}
