/* ==========================================================================
   SYSTEM PROJEKTOWY: PREMIUM GLASSMORPHISM DLA FLATPACK.HELP
   ========================================================================== */

:root {
  /* Paleta kolorów */
  --primary: #1e3a8a;
  /* Głęboki, szlachetny granat */
  --primary-light: #2563eb;
  --primary-glow: rgba(30, 58, 138, 0.12);

  --accent: #097eff;
  /* Żywy niebieski z załącznika */
  --accent-light: #3da2ff;
  --accent-glow: rgba(9, 126, 255, 0.2);

  --yellow: #e7ba04;
  /* Ciepły żółty z wytycznych */
  --dark: #0f172a;
  /* Ciemny grafit / navy */

  --bg-light: #f8fafc;
  --bg-section: #ffffff;
  --border-color: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(15, 23, 42, 0.08);

  --text-light: #ffffff;
  --text-navy: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  /* Promienie i efekty */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

  --shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 30px 60px -20px rgba(49, 82, 76, 0.15), 0 1px 5px rgba(0, 0, 0, 0.04);

  /* Typografia */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset stylów */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-light);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-navy);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  font-weight: 400;
  color: var(--text-body);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  position: relative;
  background-color: var(--bg-section);
}

section:nth-of-type(even) {
  background-color: var(--bg-light);
}

/* ==========================================================================
   ANNOUNCEMENT BAR & FLOATING HEADER
   ========================================================================== */

/* Pasek górny - Żywy niebieski z załącznika */
.top-info-bar {
  background-color: var(--accent);
  padding: 10px 24px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  position: relative;
  z-index: 101;
}

.top-info-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-info-bar a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 800;
  transition: var(--transition);
}

.top-info-bar a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Pasek dolny (CTA) - Elegancki z biało-szarym tłem */
.bottom-cta-bar {
  background-color: var(--bg-section);
  padding: 14px 24px;
  color: var(--text-body);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.bottom-cta-bar .top-info-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bottom-cta-bar a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 700;
  transition: var(--transition);
}

.bottom-cta-bar a:hover {
  color: var(--primary-light);
}

.info-divider,
.info-divider-hide {
  opacity: 0.25;
  margin: 0 10px;
  display: inline-block;
}

/* Nagłówek nakładany na zdjęcie w tle - wyżej dla eleganckiego minimalizmu */
.main-header {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 15px 0;
  background: transparent;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  /* Zwiększone dla 30% większego logo */
}

.logo-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* ==========================================================================
   PURE HTML LOGO STYLES (PREMIUM TYPOGRAPHY)
   ========================================================================== */
.logo-html {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.logo-emoji {
  display: inline-block;
  transform-origin: bottom center;
  font-size: 2.3rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
  transition: var(--transition);
  user-select: none;
}

.logo-emoji svg {
  display: block;
  width: 32px;
  height: 32px;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: var(--transition);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.logo-tm {
  font-weight: 300 !important;
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 2px;
}

.logo-tagline {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  text-align: left;
  white-space: nowrap;
}

.logo-html:hover .logo-emoji:not(.logo-loading) {
  animation: logo-hover-wiggle 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-html:hover .logo-title {
  color: #ffffff;
}

.logo-emoji.logo-loading {
  animation: logo-loading-wiggle 1.2s ease-in-out infinite;
}

@keyframes logo-loading-wiggle {
  0% {
    transform: rotate(0deg) translateY(0);
  }

  25% {
    transform: rotate(-8deg) translateY(-3px) scale(1.06);
  }

  50% {
    transform: rotate(0deg) translateY(0);
  }

  75% {
    transform: rotate(8deg) translateY(-3px) scale(1.06);
  }

  100% {
    transform: rotate(0deg) translateY(0);
  }
}

@keyframes logo-hover-wiggle {
  0% {
    transform: rotate(0deg) scale(1);
  }

  30% {
    transform: rotate(-15deg) scale(1.12);
  }

  60% {
    transform: rotate(10deg) scale(1.12);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* Footer HTML Logo Specifics */
.footer-logo-html .logo-title {
  text-shadow: none;
}

.footer-logo-html .logo-tagline {
  color: rgba(255, 255, 255, 0.65);
  text-shadow: none;
}

.logo-subtext {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffffff;
  /* Czysta biel z wytycznych */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1;
  pointer-events: none;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
  color: var(--yellow);
}

/* ==========================================================================
   PRZYCISKI (BUTTONS - PREMIUM & CLEAN)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background-color: #ffffff;
  color: var(--text-navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-secondary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-secondary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(9, 126, 255, 0.3);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   SEKCJA HERO (ZDJĘCIE SALONU W TLE + ELEGANCKA NAKŁADKA SZKŁA)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 780px;
  padding: 140px 0 80px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
  will-change: opacity, transform;
  animation: heroKenBurns 30s ease-in-out infinite alternate;
  filter: grayscale(100%) brightness(35%) contrast(110%);
}

.hero-bg.active {
  opacity: 1;
}

.hero-bg-1 {
  background-image: url('assets/havsta-day-room.jpg');
}

.hero-bg-2 {
  background-image: url('assets/havsta-day-room-2.jpg');
  animation-delay: -15s;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 69, 148, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  /* Zmieniony podział: formularz po prawej (1.2fr) jest szerszy niż treść po lewej (0.8fr) */
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
}

/* Karta tekstowa w stylu Glassmorphism (Szkło) */
.hero-content {
  background: rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 35px;
  color: #ffffff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.friendly-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  /* White */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  /* Slightly smaller on desktop to match layouts cleanly */
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nobreak {
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   WIGODNY, SZERSZY FORMULARZ NAŁOŻONY NA ZDJĘCIE
   ========================================================================== */
.form-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px 35px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  width: 100%;
}

.form-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-navy);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  text-align: center;
}

.highlight-underline {
  position: relative;
  display: inline-block;
  color: var(--text-navy);
  /* matches title navy color */
}

.form-container .highlight-underline {
  color: var(--primary);
}

.highlight-underline::after {
  content: '';
  position: absolute;
  left: -2%;
  bottom: -6px;
  width: 104%;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'><path d='M1,8 Q24,4 48,7 T78,5 T99,7' fill='none' stroke='%23097eff' stroke-width='3.2' stroke-linecap='round'/><path d='M3,10 Q28,7 52,9 T82,6 T97,8' fill='none' stroke='%23097eff' stroke-width='2.2' stroke-linecap='round'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* Foldable screenshots section styling */
.foldable-screenshots-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.3s ease-out,
    opacity 0.3s ease-out,
    margin-top 0.3s ease-out;
  margin-top: 0;
  width: 100%;
}

.foldable-screenshots-content.expanded {
  max-height: 800px;
  /* Generous fallback; JS overrides with scrollHeight */
  opacity: 1;
  margin-top: 8px;
  padding-bottom: 8px;
}

.fold-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fold-arrow.rotated {
  transform: rotate(-180deg);
}

/* Mobilny pasek kontaktowy (ukryty na desktopie) */
.mobile-contact-bar {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  /* Zredukowany odstęp między polami */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 2px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-navy);
}

.form-input,
.form-textarea {
  width: 100%;
  height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  background-color: #ffffff;
  color: var(--text-navy);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
  transition: all 0.2s ease-in-out;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.form-textarea {
  resize: vertical;
  /* Allow manual vertical resizing */
  height: auto;
  min-height: 90px;
  overflow-y: auto;
  /* Enable auto scrollbar */
}

.form-textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Success state after form submission */
.form-success-message {
  text-align: center;
  padding: 32px 24px;
  background: rgba(15, 23, 42, 0.85);
  /* Premium high-contrast dark card container */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.35);
  animation: successFadeIn 0.5s ease-out;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.success-celebration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.success-icon-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 182, 122, 0.08), rgba(0, 182, 122, 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 182, 122, 0.15);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(0, 182, 122, 0);
  }
}

.success-checkmark .success-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: successStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.15s forwards;
}

.success-checkmark .success-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: successStroke 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.65s forwards;
}

@keyframes successStroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.form-container .form-success-message h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 8px 0 4px 0;
}

.form-container .success-subtitle {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.95);
  /* Extremely readable light white-slate text against dark card */
  line-height: 1.6;
  margin: 0 0 8px 0;
  max-width: 380px;
}

.form-container .success-contact-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  /* High-contrast text against dark card */
  margin: 0 0 20px 0;
}

.form-container .success-contact-note a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.success-contact-note a:hover {
  text-decoration: underline;
}

.success-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.success-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.success-action-primary {
  background: var(--accent);
  /* Premium vibrant blue button matching other CTAs */
  color: #fff;
  box-shadow: 0 2px 8px rgba(9, 126, 255, 0.25);
}

.success-action-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(9, 126, 255, 0.35);
}

.success-action-secondary {
  background: #f1f5f9;
  color: var(--text-navy);
}

.success-action-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   TRUSTPILOT GLOBAL BADGE & STAR BLOCKS
   ========================================================================== */
.trustpilot-global-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: #ffffff;
  padding: 10px 24px;
  border-radius: 40px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  margin-top: 8px;
  flex-wrap: wrap;
}

.tp-badge-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-star-logo {
  display: block;
}

.tp-badge-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-navy);
  letter-spacing: -0.01em;
}

.tp-badge-divider {
  width: 1px;
  height: 20px;
  background-color: rgba(15, 23, 42, 0.12);
}

.tp-badge-stars {
  display: flex;
  gap: 4px;
}

.tp-star-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: #00b67a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 3px;
  line-height: 1;
}

.tp-badge-stats {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tp-badge-stats strong {
  color: var(--text-navy);
  font-weight: 700;
}

/* Karta Opinii - Header z Trustpilot Verified */
.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.review-rating {
  color: var(--yellow);
  font-size: 1.15rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.review-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  color: #00b67a;
  background-color: rgba(0, 182, 122, 0.06);
  padding: 4px 10px;
  border-radius: 12px;
  transition: var(--transition);
}

.review-card:hover .review-platform {
  background-color: rgba(0, 182, 122, 0.12);
}

.tp-mini-star {
  display: block;
}

/* ==========================================================================
   OPINIE KLIENTÓW (GRID 3 KARTY HORYZONTALNIE)
   ========================================================================== */
.reviews-section {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
  padding: 10px 0 30px 0;
  /* Dodatkowa przestrzeń na dole na cienie kart */
}

.carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.review-card {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  flex-shrink: 0;
  width: calc((100% - 60px) / 3);
  /* Desktop: 3 widoczne karty */
  box-sizing: border-box;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.review-body-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.review-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-navy);
  margin: 0;
  line-height: 1.4;
}

.review-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
}

.review-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.review-see-more {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  margin-top: 4px;
  display: inline-block;
  transition: var(--transition);
  align-self: flex-start;
}

.review-see-more:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.review-author {
  font-size: 0.88rem;
  color: var(--text-navy);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 16px;
  font-weight: 700;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-navy);
  font-size: 1.8rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: var(--transition);
  z-index: 10;
  user-select: none;
  line-height: 1;
}

.prev-btn {
  left: -25px;
}

.next-btn {
  right: -25px;
}

.carousel-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px var(--accent-glow);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Dots indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background-color: var(--accent);
}

/* ==========================================================================
   STOPKA Z LOGO IG
   ========================================================================== */
.main-footer {
  background-color: #074594;
  /* Ciemniejszy niebieski niż top na górze */
  color: #ffffff;
  padding: 60px 0 30px 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  align-items: center;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand-col .logo-group {
  margin-bottom: 16px;
  align-items: center;
}

.footer-brand-col .logo-text-group {
  align-items: center;
}

.footer-brand-col .logo-subtext {
  color: rgba(255, 255, 255, 0.65);
  /* Lekko przyciemniony w stopce dla hierarchii */
}

.footer-slogan {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 380px;
  font-weight: 500;
  text-align: center;
  margin: 0 auto;
}

.footer-slogan-dash {
  color: rgba(255, 255, 255, 0.3) !important;
  margin: 0 4px;
  font-weight: 300;
}

.footer-social-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  /* Wymuś czystą biel na ikonie i tekście */
  border-radius: 30px;
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
  transition: var(--transition);
}

.instagram-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 39, 67, 0.5);
  filter: brightness(1.08);
}

.instagram-icon {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-bottom p {
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer-bottom-container {
    flex-direction: column-reverse !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILNA REWOLUCJA)
   ========================================================================== */
@media (max-width: 992px) {
  body {
    display: flex;
    flex-direction: column;
  }

  .main-header {
    position: static !important;
    background-color: var(--accent) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    order: 1;
    padding: 24px 0 !important;
    /* Made the top bar taller on mobile */
  }

  .header-container {
    justify-content: center !important;
    text-align: center;
    height: auto;
  }

  .logo-group {
    align-items: center !important;
    gap: 0px !important;
    /* Usunięcie domyślnego odstępu */
  }

  .main-header .logo-subtext {
    font-size: 0.55rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: none !important;
    margin-top: -5px !important;
    /* Dosunięcie podpisu bezpośrednio pod logo */
  }

  .top-info-bar:first-of-type {
    display: none !important;
    /* Ukrywamy całkowicie na samej górze */
  }

  main {
    order: 2;
  }

  .main-footer {
    order: 3;
  }

  .hero-section {
    padding-top: 30px !important;
    padding-bottom: 40px !important;
    min-height: auto;
    /* Pozwala tłu dopasować się naturalnie do wysokości treści bez rozciągania */
  }

  .hero-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px;
  }

  .form-container {
    order: 1 !important;
    /* Formularz na mobilkach wchodzi na samą górę sekcji hero! */
    padding: 24px 20px;
  }

  .form-container .form-grid {
    gap: 12px;
  }

  .form-container .form-group {
    margin-bottom: 4px;
  }

  .form-container .form-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  .mobile-contact-bar {
    display: flex !important;
    /* Pokazujemy pasek na mobile pod formularzem */
    justify-content: center;
    align-items: center;
    gap: 24px;
    order: 2 !important;
    background-color: #f1f5f9;
    /* Śliczny, stonowany szary pasek */
    color: #475569;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  }

  .mobile-contact-bar a {
    color: var(--primary) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    border-bottom: 1px dashed var(--primary);
  }

  .hero-content {
    order: 3 !important;
    /* Krótki opis wchodzi pod pasek kontaktowy */
    padding: 24px;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem !important;
    margin-bottom: 12px !important;
    line-height: 1.25 !important;
  }

  .review-card {
    width: calc((100% - 30px) / 2);
    /* Tablet: 2 widoczne karty */
  }

  .carousel-track {
    gap: 30px;
  }

  .prev-btn {
    left: -12px;
  }

  .next-btn {
    right: -12px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-slogan {
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .top-info-bar {
    font-size: 0.78rem;
    padding: 8px 16px;
  }

  .top-info-container {
    gap: 8px;
  }

  .info-divider-hide {
    display: none !important;
  }

  .logo-emoji {
    font-size: 1.8rem;
  }

  .logo-title {
    font-size: 1.4rem;
  }

  .logo-tagline {
    font-size: 0.55rem;
  }

  .hero-title {
    font-size: clamp(1.35rem, 6vw, 1.65rem) !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
  }

  .hero-content {
    padding: 18px 14px !important;
  }

  .hero-content .friendly-badge {
    font-size: 0.68rem !important;
    margin-bottom: 6px !important;
  }

  .hero-subtitle {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 0;
  }

  .form-container {
    padding: 16px 12px;
    /* More compact padding */
  }

  .form-title {
    font-size: 1.05rem;
    /* Smaller title */
    margin-bottom: 12px;
    padding-bottom: 6px;
  }

  .form-tabs {
    margin-bottom: 14px !important;
    padding: 3px !important;
    border-radius: 20px !important;
  }

  .form-tab-btn {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 16px !important;
  }

  .form-container .form-grid {
    gap: 6px !important;
  }

  .form-group {
    margin-bottom: 0px !important;
    gap: 1px !important;
  }

  /* Hide empty postcode / phone validation helper messages to save vertical space */
  .zip-validation-msg:empty,
  .phone-validation-msg:empty {
    display: none !important;
  }

  .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-navy) !important;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .form-label svg {
    width: 12px;
    height: 12px;
    opacity: 0.85;
  }

  .form-input {
    padding: 7px 10px !important;
    font-size: 16px;
    /* Exactly 16px to prevent iOS focus auto-zoom! */
    border-radius: var(--radius-sm);
  }

  .form-textarea {
    padding: 7px 10px !important;
    font-size: 16px;
    min-height: 90px !important;
    overflow-y: auto;
  }

  .form-textarea::placeholder {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  /* IKEA Estimator Mobile Tweaks */
  #estimator-view .estimator-intro {
    font-size: 0.78rem !important;
    margin-bottom: 12px !important;
  }

  #estimator-view .form-group {
    margin-bottom: 12px !important;
  }

  #estimator-view .form-group div[style*='display: flex'] {
    gap: 6px !important;
  }

  #estimator-view #estimator-url {
    padding: 8px 10px !important;
    font-size: 16px !important;
  }

  #estimator-view #btn-calculate-estimate {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
  }

  #estimator-result {
    margin-top: 12px !important;
    padding: 12px !important;
  }

  #estimator-result img {
    width: 60px !important;
    height: 60px !important;
  }

  #estimator-result h4 {
    font-size: 0.95rem !important;
  }

  #estimator-result p {
    font-size: 0.75rem !important;
  }

  #estimator-result div[style*='padding: 16px'] {
    padding: 10px !important;
    margin-bottom: 10px !important;
  }

  #estimator-result #estimator-price-range {
    font-size: 1.4rem !important;
  }

  #estimator-result div[style*='background: rgba(99, 102, 241, 0.08)'] {
    padding: 8px 10px !important;
    margin-bottom: 10px !important;
    gap: 6px !important;
  }

  #estimator-result div[style*='background: rgba(99, 102, 241, 0.08)'] p {
    font-size: 0.72rem !important;
  }

  #estimator-result #btn-apply-estimate {
    font-size: 0.8rem !important;
    padding: 10px 16px !important;
  }

  .link-paste-container {
    margin-top: 8px !important;
    gap: 6px !important;
  }

  .link-paste-container .form-input {
    font-size: 16px !important;
    padding: 8px 10px !important;
  }

  .link-paste-container button {
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
  }

  /* Extremely slim and compact file upload area */
  .file-drop-area {
    padding: 10px 8px;
    /* Slim uploader height as requested */
    border-radius: var(--radius-sm);
    margin-top: 4px;
  }

  .file-drop-text {
    font-size: 0.82rem;
  }

  .file-drop-subtext {
    font-size: 0.72rem;
  }

  .file-list {
    margin-top: 6px;
    gap: 4px;
  }

  .file-item {
    padding: 6px 10px;
    gap: 8px;
  }

  .file-name {
    font-size: 0.8rem;
  }

  .file-size {
    font-size: 0.7rem;
  }

  /* Beautiful submit button */
  .form-container .btn-block {
    padding: 12px 20px;
    font-size: 0.95rem;
    /* Larger font */
    margin-top: 6px;
  }

  .trustpilot-global-badge {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
  }

  .tp-badge-divider {
    display: none;
  }

  .review-card {
    width: 100%;
    /* Mobile: 1 widoczna karta */
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .prev-btn {
    left: -8px;
  }

  .next-btn {
    right: -8px;
  }
}

/* ==========================================================================
   POSTCODE AUTOCOMPLETE & VALIDATION WIDGET
   ========================================================================== */
.zip-input-wrapper {
  position: relative;
  width: 100%;
}

.zip-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-sm);
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
}

.zip-suggestion-item {
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-navy);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.zip-suggestion-item:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

.zip-validation-msg {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  transition: var(--transition);
  min-height: 18px;
  text-align: right;
}

.zip-msg-success {
  color: #00b67a;
}

.zip-msg-warning {
  color: var(--accent);
}

.zip-msg-error {
  color: #ef4444;
}

.form-input.zip-input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.form-input.zip-input-error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.phone-validation-msg {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  min-height: 18px;
  text-align: left;
}

.phone-msg-success {
  color: #00b67a;
}

.phone-msg-warning {
  color: var(--accent);
}

.phone-msg-error {
  color: #ef4444;
}

.form-input.phone-input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.form-input.phone-input-error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* ==========================================================================
   DRAG & DROP FILE UPLOAD AREA
   ========================================================================== */
.file-drop-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  border: 2px dashed rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  user-select: none;
  margin-top: 6px;
}

.file-drop-area:hover,
.file-drop-area.highlight {
  border-color: var(--accent);
  background-color: #f1f5f9;
  /* Solid beautiful light slate grey background to prevent transparency & background bleed-through! */
  box-shadow: 0 4px 20px rgba(9, 126, 255, 0.08);
}

.file-drop-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  transition: var(--transition);
}

.file-drop-area:hover .file-drop-icon,
.file-drop-area.highlight .file-drop-icon {
  transform: translateY(-4px) scale(1.1);
}

.file-drop-text {
  font-size: 0.95rem;
  color: var(--text-navy);
  font-weight: 600;
  margin-bottom: 4px;
}

.file-drop-browse {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 800;
}

.file-drop-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* File list style */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  gap: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
  animation: slideIn 0.25s ease-out;
  min-width: 0;
  overflow: hidden;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.file-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.file-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.file-size {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.file-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition);
  margin-left: auto;
}

.file-remove:hover {
  color: #ef4444;
  transform: scale(1.2);
}

/* Footer Social Icons Column & Row (Perfectly centered on desktop and mobile) */
.footer-social-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-social-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-social-icon {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.footer-social-icon svg {
  width: 24px;
  height: 24px;
  transition: var(--transition);
}

.footer-social-icon:hover {
  color: var(--accent);
  transform: translateY(-3px) scale(1.18);
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
}

/* Trustpilot Footer Rating Widget (Perfect centered replica of the attached badge) */
.footer-trustpilot-box {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.footer-tp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: transparent;
  padding: 4px 0;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.footer-tp-brand {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tp-star-icon {
  display: inline-block;
}

.tp-brand-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.tp-vertical-divider {
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.3);
}

.tp-badge-stars {
  display: flex;
  gap: 3px;
}

.tp-star-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #00b67a;
  /* Official Trustpilot Green */
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 2px;
  line-height: 1;
}

.tp-rating-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: #ffffff;
}

.footer-tp-locations {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  letter-spacing: 0.05em;
  text-align: center;
}

.footer-trustpilot-box a {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
}

.footer-trustpilot-box a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Testimonials Portrait Tablet & Mobile 1-Column Force */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.65rem !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
  }

  .review-card {
    width: 100% !important;
    padding: 20px 36px !important;
    /* Increased horizontal padding to ensure text content clears the overlay buttons! */
    gap: 8px !important;
  }

  /* Semi-opaque slider arrow buttons on mobile to prevent obscuring content */
  .carousel-btn,
  .insta-slider-btn {
    opacity: 0.7 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-navy) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    transition:
      opacity 0.3s ease,
      background-color 0.3s ease,
      color 0.3s ease,
      border-color 0.3s ease !important;
  }

  .carousel-btn:hover,
  .carousel-btn:active,
  .carousel-btn:focus,
  .insta-slider-btn:hover,
  .insta-slider-btn:active,
  .insta-slider-btn:focus {
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-navy) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-50%) scale(1) !important;
  }

  .review-card-header {
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
    gap: 8px !important;
  }

  .review-rating {
    font-size: 1.05rem !important;
  }

  .review-title {
    font-size: 0.95rem !important;
  }

  .review-text {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  .review-author {
    padding-top: 10px !important;
    font-size: 0.8rem !important;
  }

  .review-see-more {
    margin-top: 2px !important;
    font-size: 0.78rem !important;
  }

  /* Footer Social and Trustpilot Mobile Optimizations */
  .main-footer .footer-social-row {
    gap: 12px 14px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .main-footer .footer-social-icon {
    width: auto !important;
    height: auto !important;
    border: none !important;
    padding: 8px !important;
    flex-shrink: 0 !important;
  }

  .main-footer .footer-social-icon svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 100% !important;
  }

  /* Reposition Back to Top Button on Mobile to avoid covering footer text */
  #back-to-top {
    bottom: 80px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
  }

  .footer-tp-badge {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    white-space: nowrap !important;
    max-width: 100% !important;
  }

  .footer-tp-brand {
    gap: 3px !important;
  }

  .tp-brand-name {
    font-size: 0.82rem !important;
  }

  .tp-star-icon {
    width: 14px !important;
    height: 14px !important;
  }

  .tp-star-square {
    width: 14px !important;
    height: 14px !important;
    font-size: 0.58rem !important;
  }

  .tp-badge-stars {
    gap: 2px !important;
  }

  .tp-rating-text {
    font-size: 0.78rem !important;
  }

  .tp-vertical-divider {
    height: 10px !important;
  }

  .footer-tp-locations {
    font-size: 0.78rem !important;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: clamp(1.35rem, 6vw, 1.65rem) !important;
  }
}

/* ==========================================================================
   INSTAGRAM FEED SLIDER (CAROUSEL)
   ========================================================================== */
.instagram-slider-section {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 85px 0;
  overflow: hidden;
}

.insta-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.insta-track-container {
  overflow: hidden;
  width: 100%;
  padding: 10px 0 30px 0;
  /* Space for box-shadow hover */
}

.insta-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.insta-card {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex-shrink: 0;
  width: calc((100% - 72px) / 4);
  /* Desktop: 4 items side-by-side */
  box-sizing: border-box;
  overflow: hidden;
}

.insta-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.insta-card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.insta-img-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background-color: #f1f5f9;
}

.insta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.insta-card:hover .insta-img {
  transform: scale(1.06);
}

.insta-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 126, 255, 0.12);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.insta-card:hover .insta-card-overlay {
  opacity: 1;
}

.insta-overlay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.insta-overlay-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.insta-card-body {
  padding: 18px;
  background-color: #ffffff;
}

.insta-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.insta-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.insta-likes {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--primary);
}

.insta-caption {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-body);
  font-weight: 500;
  text-align: left;
  margin: 0;

  /* Limit description text to exactly 3 lines with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Slider Navigation Buttons */
.insta-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-navy);
  font-size: 1.8rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: var(--transition);
  z-index: 10;
  user-select: none;
  line-height: 1;
}

.insta-slider-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px var(--accent-glow);
  transform: translateY(-50%) scale(1.08);
}

.insta-slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.insta-slider-btn.prev-btn {
  left: -25px;
}

.insta-slider-btn.next-btn {
  right: -25px;
}

/* Responsive updates for Instagram slider */
@media (max-width: 992px) {
  .insta-card {
    width: calc((100% - 24px) / 2);
    /* Tablet: 2 visible items */
  }

  .instagram-slider-section {
    padding: 60px 0;
  }

  .insta-slider-btn.prev-btn {
    left: -12px;
  }

  .insta-slider-btn.next-btn {
    right: -12px;
  }
}

@media (max-width: 576px) {
  .insta-card {
    width: calc((100% - 24px) / 2);
    /* Mobile: 2 visible items */
  }

  .insta-card-body {
    padding: 12px !important;
    /* Reduced padding for 2-column mobile layout */
  }

  .insta-slider-btn.prev-btn {
    left: -8px;
  }

  .insta-slider-btn.next-btn {
    right: -8px;
  }
}

/* ==========================================================================
   INSTAGRAM PREVIEW MODAL (PREMIUM GLASSMORPHISM & DYNAMIC RESPONSIVE)
   ========================================================================== */
.insta-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.insta-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.insta-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s ease;
}

.insta-modal-container {
  position: relative;
  background-color: #ffffff;
  width: 100%;
  max-width: 960px;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  z-index: 2;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.insta-modal.active .insta-modal-container {
  transform: translateY(0) scale(1);
}

.insta-modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: #ffffff;
  /* White color to stand out on dark overlay */
  font-size: 2.2rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10000;
}

.insta-modal-close:hover {
  color: var(--accent-light);
  transform: scale(1.15) rotate(90deg);
}

.insta-modal-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  max-height: 85vh;
  min-height: 580px;
}

.insta-modal-image-sec {
  position: relative;
  background-color: #000000;
  /* Solid black bounds like real Instagram */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.insta-modal-image-sec img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Shows full aspect ratio/whole resolution, no cropping */
}

.insta-modal-details-sec {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  height: 100%;
  border-left: 1px solid rgba(15, 23, 42, 0.06);
}

/* Instagram Header */
.insta-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.insta-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.insta-modal-avatar-blue {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent);
  /* Instagram Verified/Brand Blue shade */
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-modal-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.insta-modal-username {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: #262626;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.insta-modal-username:hover {
  opacity: 0.8;
}

.insta-modal-follow-divider {
  font-size: 0.9rem;
  color: #262626;
  font-weight: 500;
}

.insta-modal-follow-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: #0095f6;
  /* Real Instagram Blue Link */
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.insta-modal-follow-btn:hover {
  color: #00376b;
}

.insta-modal-more-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: #262626;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.insta-modal-more-btn:hover {
  opacity: 0.5;
}

/* Scrollable body */
.insta-modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  max-height: 400px;
}

/* Main caption block styling */
.insta-modal-caption-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.insta-modal-caption-content {
  flex-grow: 1;
}

.insta-modal-caption-content .insta-modal-username {
  margin-right: 6px;
  display: inline;
}

.insta-modal-caption-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #262626;
  font-weight: 500;
  white-space: pre-wrap;
  /* Crucial for displaying multiline real layout text */
  word-break: break-word;
  text-align: left;
}

/* Comments list styling */
.insta-modal-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-light);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.comment-content {
  flex-grow: 1;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #262626;
}

.comment-author {
  font-weight: 700;
  color: #262626;
  margin-right: 6px;
  text-decoration: none;
}

.comment-text {
  font-weight: 500;
  color: #262626;
}

/* Action Area */
.insta-modal-action-area {
  padding: 12px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.insta-modal-icons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
}

.insta-modal-icons-left {
  display: flex;
  gap: 16px;
}

.insta-icon-btn {
  background: none;
  border: none;
  padding: 4px;
  color: #262626;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.insta-icon-btn svg {
  display: block;
  stroke: #262626;
  transition: var(--transition);
}

.insta-icon-btn:hover {
  transform: scale(1.12);
}

.insta-icon-btn:hover svg {
  stroke: #000000;
}

.insta-modal-likes-count {
  font-size: 0.88rem;
  font-weight: 700;
  color: #262626;
  margin-top: 2px;
}

.insta-modal-post-date {
  font-size: 0.68rem;
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  margin-top: 2px;
}

/* Comment Input Area */
.insta-modal-comment-input-sec {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 12px 16px;
  background-color: #ffffff;
}

.insta-modal-comment-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.emoji-picker-icon {
  font-size: 1.3rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  transition: opacity 0.15s ease;
}

.emoji-picker-icon:hover {
  opacity: 0.7;
}

.insta-comment-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  outline: none;
  color: #262626;
  font-family: var(--font-body);
}

.insta-comment-input::placeholder {
  color: #8e8e8e;
}

.insta-comment-post-btn {
  border: none;
  background: transparent;
  font-weight: 750;
  color: #0095f6;
  /* Instagram Blue Link Style */
  font-size: 0.88rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
  text-decoration: none;
  padding: 4px 8px;
  display: inline-block;
}

.insta-comment-post-btn:hover {
  opacity: 0.65;
  color: #00376b;
}

/* Modal Responsive adaptation */
@media (max-width: 860px) {
  .insta-modal-content {
    grid-template-columns: 1fr;
    max-height: 85vh;
    overflow-y: auto;
    min-height: auto;
  }

  .insta-modal-image-sec {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .insta-modal-container {
    max-width: 520px;
  }

  .insta-modal-details-sec {
    height: auto;
    border-left: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .insta-modal-body {
    max-height: 280px;
  }
}

@media (max-width: 480px) {
  .insta-modal {
    padding: 10px;
  }

  .insta-modal-container {
    border-radius: var(--radius-md);
  }
}

/* ==========================================================================
   GLASSMORPHIC TOAST NOTIFICATION SYSTEM (PREMIUM DYNAMIC UX)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-notification {
  background-color: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  transform: translateY(24px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-icon {
  color: #00b67a;
  font-weight: bold;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: toast-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toast-pop {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 576px) {
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    align-items: center;
  }

  .toast-notification {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* Blowout Modal Chevron Navigation Buttons */
.insta-modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.insta-modal-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.insta-modal-nav-btn.prev-btn {
  left: 32px;
}

.insta-modal-nav-btn.next-btn {
  right: 32px;
}

@media (max-width: 1100px) {
  .insta-modal-nav-btn.prev-btn {
    left: 16px;
  }

  .insta-modal-nav-btn.next-btn {
    right: 16px;
  }
}

@media (max-width: 992px) {
  .insta-modal-nav-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(15, 23, 42, 0.65);
  }

  .insta-modal-nav-btn.prev-btn {
    left: 8px;
  }

  .insta-modal-nav-btn.next-btn {
    right: 8px;
  }
}

/* Inline Field Autosave Status Indicators */
.field-save-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  height: 16px;
  margin-top: -2px;
  margin-bottom: 2px;
  align-self: flex-end;
  /* Align perfectly to the right side below the field */
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.field-save-status.show {
  opacity: 1;
  transform: translateY(0);
}

.field-save-status .spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(9, 126, 255, 0.15);
  border-top-color: #097eff;
  border-radius: 50%;
  animation: field-spin 0.6s linear infinite;
}

.field-save-status .checkmark {
  color: #00b67a;
  font-weight: bold;
  font-size: 0.95rem;
  line-height: 1;
  animation: field-bounce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes field-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes field-bounce {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   INSTANT PRICE ESTIMATOR WIDGET STYLES
   ========================================================================== */

.form-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.25);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 5;
}

.form-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.form-tab-btn.active {
  background: #ffffff;
  color: var(--text-navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.form-tab-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hidden {
  display: none !important;
}

/* Multi-column Footer Layout overrides */
.footer-container {
  display: grid !important;
  grid-template-columns: 1.5fr 1.2fr 1.2fr 1.5fr !important;
  gap: 30px !important;
  padding-bottom: 40px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  align-items: start !important;
}

.footer-brand-col {
  align-items: center !important;
  text-align: center !important;
}

.footer-brand-col .logo-group {
  margin-bottom: 16px !important;
  align-items: center !important;
}

.footer-brand-col .logo-text-group {
  align-items: center !important;
}

.footer-slogan {
  text-align: center !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end; /* right-aligned on desktop */
}

.footer-toggle {
  font-family: var(--font-heading);
  font-size: 0.9rem !important; /* smaller */
  font-weight: 600 !important; /* more compact */
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.6) !important; /* tuned out (greyish white) */
  display: inline-flex !important; /* compact width */
  align-items: center !important;
  justify-content: flex-end !important; /* right-aligned on desktop */
  gap: 8px !important;
  width: auto !important; /* don't stretch to 100% on desktop */
  cursor: pointer !important;
  user-select: none !important;
  outline: none !important;
  padding: 4px 0 !important;
  transition: color 0.2s ease !important;
}

.footer-toggle:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

.footer-toggle-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.25s ease !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

.footer-toggle:hover .footer-toggle-arrow {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer-links-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 100%;
}

.footer-links-col.is-open .footer-links-wrapper {
  margin-top: 8px !important;
}

.footer-links-col.is-open .footer-toggle-arrow {
  transform: rotate(180deg) !important;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end; /* right-aligned on desktop */
  text-align: right;
}

.footer-links-list li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.footer-links-list li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-social-col {
  align-items: center !important;
  text-align: center !important;
}

.footer-social-row {
  margin-top: 0 !important;
  justify-content: center !important;
}

.footer-social-icon {
  padding: 4px 4px !important;
}

/* Tablet & Mobile alignment overrides */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    text-align: center !important;
  }
  .footer-brand-col,
  .footer-brand-col .logo-group,
  .footer-brand-col .logo-text-group,
  .footer-slogan {
    align-items: center !important;
    text-align: center !important;
  }
  .footer-links-col {
    align-items: center !important;
  }
  .footer-toggle {
    justify-content: center !important;
    width: auto !important;
    display: inline-flex !important;
    gap: 6px !important;
    color: rgba(255, 255, 255, 0.6) !important;
  }
  .footer-links-list {
    align-items: flex-end !important;
    text-align: right !important;
    width: max-content;
    margin: 0 auto !important;
  }
  .footer-social-col {
    align-items: center !important;
    text-align: center !important;
  }
  .footer-social-row {
    margin-top: 10px !important;
    justify-content: center !important;
  }
  .footer-social-icon {
    padding: 10px !important;
  }
}

/* How It Works & Areas We Cover Styling */
.how-it-works-section {
  padding: 85px 0;
  background-color: #f8fafc;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.hiw-steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 15px;
  align-items: center;
  margin-top: 45px;
}

.hiw-step {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease-in-out;
  position: relative;
}

.hiw-step:hover {
  border-color: var(--primary);
}

.hiw-step-icon {
  font-size: 2.3rem;
  margin-bottom: 12px;
}

.hiw-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b2240;
  margin-bottom: 8px;
}

.hiw-step-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}

.hiw-step-arrow {
  font-size: 2rem;
  color: #0070f3;
  font-weight: 700;
}

/* Areas We Cover Styling */
.areas-section {
  padding: 85px 0;
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.areas-grid-wrapper {
  margin-top: 35px;
}

.areas-region-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b2240;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
}

.areas-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-tag {
  display: inline-block;
  background-color: #f1f5f9;
  color: #0b2240;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.area-tag:hover {
  background-color: #0070f3;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.25);
}

.area-tag-primary {
  background-color: rgba(0, 112, 243, 0.07);
  color: #0070f3;
  border-color: rgba(0, 112, 243, 0.15);
}

@media (max-width: 992px) {
  .hiw-steps-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .hiw-step-arrow {
    display: none;
  }
}

/* Guide & Location Page Article Headings Spacing */
.guide-post-body h2 {
  margin-top: 4.8rem !important;
  margin-bottom: 1.5rem !important;
}
.guide-post-body h3 {
  margin-top: 3.8rem !important;
  margin-bottom: 1.25rem !important;
}
.guide-post-body p {
  margin-bottom: 1.8rem !important;
  line-height: 1.75 !important;
}
.guide-post-body ul {
  margin-bottom: 1.8rem !important;
}

/* Tip & Warning Box Stylings with High Readability and Contrast */
.guide-tip-box {
  background: #f0f7ff !important;
  border-left: 4px solid #0066cc !important;
  border-radius: 6px;
  padding: 18px 20px;
  margin: 35px 0 !important;
  font-size: 0.94rem;
  color: #1e293b !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.guide-tip-box strong {
  color: #004c99 !important;
}

.guide-warning-box {
  background: #fffdf5 !important;
  border-left: 4px solid #d97706 !important;
  border-radius: 6px;
  padding: 18px 20px;
  margin: 35px 0 !important;
  font-size: 0.94rem;
  color: #1e293b !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.guide-warning-box strong {
  color: #b45309 !important;
}

/* Search Box Styling for Instagram Section and Widgets */
.portfolio-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-light, #f8fafc);
  border: 1px solid var(--border-dark, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  padding: 10px 14px;
  flex: 1;
  max-width: 500px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.portfolio-search-box:focus-within {
  border-color: var(--primary, #2563eb);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.15),
    0 4px 6px -1px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.portfolio-search-box input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-navy, #0f172a);
  padding-left: 8px;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Mobile Typography Optimization (Smaller text, headings, and toasts on mobile viewports) */
@media (max-width: 768px) {
  html {
    font-size: 15px !important;
  }

  /* Pin header logo and footer text sizes to keep them unchanged */
  .logo-title {
    font-size: 22.4px !important; /* 1.4rem * 16px */
  }
  .logo-tagline {
    font-size: 8.8px !important; /* 0.55rem * 16px */
  }
  .main-header .logo-subtext {
    font-size: 8.8px !important;
  }

  /* Explicit overrides for toasts/alerts */
  #portfolio-toast,
  .auto-save-status,
  .toast,
  .alert-toast,
  .portfolio-modal-toast {
    font-size: 0.8rem !important;
    padding: 8px 16px !important;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px !important;
  }

  /* Headings size optimization */
  h1 {
    font-size: 1.6rem !important;
  }
  h2 {
    font-size: 1.3rem !important;
  }
  h3 {
    font-size: 1.1rem !important;
  }
  h4 {
    font-size: 0.95rem !important;
  }

  /* Keep logo title / slogan text readable and original size */
  .logo-title {
    font-size: 22.4px !important;
  }
  .logo-tagline {
    font-size: 8.8px !important;
  }
  .main-header .logo-subtext {
    font-size: 8.8px !important;
  }

  /* Toast messages even slightly smaller on small viewports */
  #portfolio-toast,
  .auto-save-status,
  .toast,
  .alert-toast,
  .portfolio-modal-toast {
    font-size: 0.78rem !important;
    padding: 6px 12px !important;
    bottom: 16px !important;
  }
}

/* Focus-visible styles for accessible carousels */
.carousel-wrapper:focus-visible,
.insta-slider-wrapper:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.carousel-wrapper:focus:not(:focus-visible),
.insta-slider-wrapper:focus:not(:focus-visible) {
  outline: none;
}

/* Premium Image load fallback and shimmer-pulse animations */
.image-error-fallback {
  object-fit: contain !important;
  background: rgba(148, 163, 184, 0.05) !important;
  border: 1px dashed rgba(148, 163, 184, 0.2) !important;
  animation: pulseBroken 2.5s infinite ease-in-out;
  padding: 12% !important;
  box-sizing: border-box !important;
}

/* Specific scaling override for small fitter job photo thumbnails in table view */
.fitter-job-photo-thumb.image-error-fallback {
  padding: 4px !important;
}

/* Scaling override for attachment thumbnails in details modal and galleries */
.attachment-thumb img.image-error-fallback {
  padding: 12px !important;
}

/* Toned down attachments thumbnails when inactive/not hovered */
.attachment-thumb {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.attachment-thumb img {
  opacity: 0.65;
  filter: grayscale(15%) contrast(95%) brightness(90%);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.attachment-thumb[style*="background-image"] {
  background-blend-mode: multiply;
  background-color: rgba(15, 23, 42, 0.35); /* Toned down overlay */
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Hover and active states */
.attachment-thumb:hover {
  transform: translateY(-2px) scale(1.03);
}

.attachment-thumb:hover img,
.attachment-thumb.active img {
  opacity: 1 !important;
  filter: grayscale(0%) contrast(100%) brightness(100%) !important;
}

.attachment-thumb:hover[style*="background-image"],
.attachment-thumb.active[style*="background-image"] {
  background-color: transparent !important;
}

@keyframes pulseBroken {
  0% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.75;
  }
}

/* Automatically uppercase postcode input text */
input#client-zip,
input#top-postcode-input,
input#checker-postcode-input,
input#postcode,
input#add-booking-postcode,
input#fitter-base-postcode,
input#settings-base-postcode,
input#manual-postcode,
input#edit-profile-postcode,
input#settings-postcode {
  text-transform: uppercase;
}
