/* RESET & BASE STYLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

#clients {
  scroll-margin-top: 90px;
}

body {
  color: #2D3748;
  background-color: #FFFFFF;
  line-height: 1.5;
  overflow-x: hidden;
  min-width: 0;
}

img {
  max-width: 100%;
  display: block;
}

a,
button,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

/* HEADER & NAVIGATION */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 8%;
  background-color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.language-switcher {
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
}

.language-switcher select {
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #1A365D;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 52px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.logo-placeholder {
  width: 72px;
  height: 72px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid #319795;
  border-radius: 50%;
  background-color: #FFFFFF;
}

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.company-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.company-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1A365D;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.company-tagline {
  font-size: 0.72rem;
  color: #4A5568;
  line-height: 1.3;
}

.nav-wrap {
  display: flex;
  align-items: center;
  margin-left: auto;
}

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

.nav-links-bar {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.nav-links-bar a {
  text-decoration: none;
  color: #2D3748;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links-bar a:hover {
  color: #319795;
}

.cta-item {
  margin-left: 0.5rem;
}

.cta-link {
  background: linear-gradient(135deg, #1A365D, #2B6CB0);
  color: #FFFFFF !important;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(26, 54, 93, 0.15);
}

.cta-link:hover {
  color: #FFFFFF !important;
  filter: brightness(1.05);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  border-radius: 10px;
  padding: 0.7rem 0.55rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #1A365D;
  border-radius: 2px;
}

.btn-login {
  background-color: #1A365D;
  color: #FFFFFF;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.btn-login:hover {
  background-color: #2A4365;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(180deg, #1A365D 0%, #2B6CB0 50%, #4FD1C5 100%);
  color: #WHITE;
  text-align: center;
  padding: 4rem 1rem 7rem 1rem;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  font-weight: 400;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* LOAN CALCULATOR CARD */
.calculator-wrapper {
  max-width: 850px;
  margin: -4.5rem auto 0 auto;
  padding: 0 1rem;
}

.calculator-card {
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: center;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4A5568;
}

.input-box {
  border: 1px solid #E2E8F0;
  background-color: #F7FAFC;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #1A202C;
}

.range-slider {
  width: 100%;
  margin-top: 0.8rem;
  accent-color: #319795;
}

.range-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #A0AEC0;
  margin-top: 0.2rem;
}

.results-group {
  text-align: center;
  border-left: 1px solid #EDF2F7;
  padding-left: 2rem;
}

.results-group .label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4A5568;
}

.results-group .amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1A202C;
  margin: 0.2rem 0;
}

.results-group .taeg {
  font-size: 0.75rem;
  color: #718096;
  margin-bottom: 1rem;
}

.btn-submit {
  background-color: #319795;
  color: #FFFFFF;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #2C7A7B;
}

/* FEATURES SECTION */
.features {
  background-color: #E6FFFA;
  padding: 3.5rem 8% 2.5rem 8%;
  margin-top: 0;
  margin-bottom: 2.5rem;
  padding-top: 5.5rem;
}

.features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 38px;
  height: 38px;
  background-color: #FFFFFF;
  border: 1px solid #B2F5EA;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #319795;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1A365D;
  margin-bottom: 0.2rem;
}

.feature-text p {
  font-size: 0.8rem;
  color: #4A5568;
}

.how-it-works {
  background-color: #F7FAFC;
  padding: 4rem 8%;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.how-it-works-page {
  background-color: #F7FAFC;
  min-height: calc(100vh - 180px);
  padding: 4rem 8%;
  border-top: 1px solid #E2E8F0;
}

.how-it-works-content {
  max-width: 900px;
  margin: 0 auto;
}

.how-it-works h2 {
  color: #1A365D;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.how-it-works-page h1 {
  color: #1A365D;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.how-it-works-intro,
.how-it-works-contact {
  color: #4A5568;
  line-height: 1.6;
}

.support-steps {
  margin: 2rem 0;
  padding-left: 1.5rem;
  color: #1A202C;
}

.support-steps li {
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

.support-steps strong {
  color: #1A365D;
}

.support-steps p {
  color: #4A5568;
  margin-top: 0.35rem;
  line-height: 1.6;
}

.how-it-works a:not(.how-it-works-cta) {
  color: #2C7A7B;
  font-weight: 700;
}

.how-it-works-cta {
  display: inline-block;
  max-width: 280px;
  margin-top: 1.5rem;
  text-align: center;
  text-decoration: none;
}

/* TRUST & FOOTER INFO */
.trust-section {
  max-width: 1100px;
  margin: 0 auto 1.5rem auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.testimonial-carousel {
  position: relative;
  width: 100%;
  min-height: 185px;
  overflow: hidden;
  flex: 1.5;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.stars {
  color: #ECC94B;
  font-size: 1rem;
  letter-spacing: 0.18em;
}

.review-text {
  font-size: 0.9rem;
  font-style: italic;
  color: #4A5568;
  line-height: 1.6;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.reviewer-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #CBD5E0, #A0AEC0);
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.reviewer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.reviewer-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2D3748;
}

.reviewer-role {
  font-size: 0.7rem;
  color: #718096;
}

.partners {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  flex: 1;
}

.partners span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1A365D;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
}

.payment-logo {
  height: 30px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05));
}

.cta-strip {
  display: flex;
  justify-content: center;
  margin: 0.5rem auto 2rem auto;
  padding: 0 8%;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #1A365D, #2B6CB0);
  color: #FFFFFF;
  padding: 0.9rem 1.6rem;
  box-shadow: 0 8px 18px rgba(26, 54, 93, 0.18);
}

.footer {
  background: linear-gradient(180deg, #F8FAFC 0%, #EDF6FF 100%);
  border-top: 1px solid #E2E8F0;
  padding: 2.5rem 0 1.5rem;
}

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

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

.footer-section {
  width: min(100%, 760px);
  text-align: center;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1A365D;
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #4A5568;
  font-size: 0.95rem;
  text-align: center;
  flex-wrap: wrap;
}

.contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E6FFFA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-phone-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.contact-list a {
  color: #1A365D;
  text-decoration: none;
  font-weight: 600;
}

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

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFFFFF !important;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
}

.contact-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.28);
  text-decoration: none !important;
}

.contact-whatsapp .contact-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.contact-separator {
  margin: 0 0.35rem;
  color: #718096;
}

.footer-bottom {
  border-top: 1px solid #D9EAFB;
  margin-top: 1.25rem;
  padding-top: 1rem;
  text-align: center;
  color: #4A5568;
  font-size: 0.8rem;
}

.form-page {
  background-color: #1A365D;
  background-image: linear-gradient(rgba(26, 54, 93, 0.42), rgba(15, 23, 42, 0.58)), url('WhatsApp Image 2026-08-28 at 18.41.59.jpeg');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

html,
body {
  width: 100%;
  max-width: 100%;
}

.form-page main {
  padding: 3rem 0 4rem;
  min-height: calc(100vh - 180px);
}

.form-container,
.confirmation-card {
  width: min(900px, 100%);
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.form-header,
.confirmation-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header {
  margin: -1.25rem -1.25rem 2rem;
  padding: 3.5rem 1.25rem;
  border-radius: 16px 16px 0 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.72)), url('arriere.avif');
  background-position: center;
  background-size: cover;
  color: #FFFFFF;
}

.form-header h2,
.confirmation-header h2 {
  color: #1A365D;
  font-size: clamp(1.45rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.form-header h2 {
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

.form-header p,
.confirmation-header p {
  color: #4A5568;
}

.form-header p {
  color: #FFFFFF;
  opacity: 0.96;
}

.form-page fieldset {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-page legend {
  color: #1A365D;
  font-weight: 700;
  padding: 0 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  color: #2D3748;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #CBD5E0;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  color: #1A202C;
  background: #FFFFFF;
  font: inherit;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid rgba(49, 151, 149, 0.18);
  border-color: #319795;
}

.form-group small {
  color: #718096;
  font-size: 0.75rem;
}

.required {
  color: #C53030;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-actions .btn-submit {
  flex: 1;
}

.form-actions .btn-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.btn-cancel {
  color: #1A365D;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(26, 54, 93, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.loading-panel {
  width: min(100%, 360px);
  padding: 2rem;
  border-radius: 14px;
  background: #FFFFFF;
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.loading-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border: 5px solid #B2F5EA;
  border-top-color: #1A365D;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-panel p {
  color: #1A365D;
  font-weight: 700;
}

.loading-panel span {
  display: block;
  margin-top: 0.35rem;
  color: #718096;
  font-size: 0.85rem;
}

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

.confirmation-page main {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
}

.confirmation-card {
  max-width: 680px;
  text-align: center;
}

.confirmation-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #E6FFFA;
  color: #2C7A7B;
  font-size: 2rem;
  font-weight: 800;
}

.confirmation-details {
  margin: 1.5rem 0;
  padding: 1rem;
  border-left: 4px solid #319795;
  background: #F7FAFC;
  color: #4A5568;
  text-align: left;
}

.confirmation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.confirmation-actions a {
  text-decoration: none;
  text-align: center;
}

.confirmation-actions .contact-whatsapp {
  color: #FFFFFF;
}

@media (max-width: 620px) {
  .form-row,
  .confirmation-actions {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-cancel {
    text-align: center;
  }
}

@media (min-width: 621px) {
  .form-header {
    margin: -2.5rem -2.5rem 2rem;
    padding: 3.5rem 2.5rem;
  }
}

@media (max-width: 1024px) {
  .nav-links-bar {
    gap: 1.1rem;
  }

  .header {
    padding-left: 4%;
    padding-right: 4%;
  }
}

@media (max-width: 900px) {
  .header {
    padding: 1rem 5%;
  }

  .header-row {
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .nav-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .calculator-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .results-group {
    border-left: none;
    border-top: 1px solid #EDF2F7;
    padding-left: 0;
    padding-top: 1rem;
  }

  .trust-section {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }

  .partners {
    align-items: center;
    width: 100%;
  }

  .payment-icons {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    width: 100%;
  }

  .nav.open {
    display: block;
  }

  .nav-wrap {
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .language-switcher {
    margin-right: 0;
  }

  .nav-links-bar {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
  }

  .nav-links-bar a {
    font-size: 0.9rem;
  }

  .cta-item {
    width: 100%;
    margin-left: 0;
  }

  .cta-link {
    width: 100%;
  }

  .logo-section {
    width: calc(100% - 60px);
    min-width: 0;
  }

  .company-info {
    min-width: 0;
  }

  .company-name {
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: normal;
  }

  .company-tagline {
    font-size: 0.62rem;
  }

  .hero {
    padding: 3rem 1rem 5rem 1rem;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .calculator-wrapper {
    padding: 0 0.75rem;
  }

  .calculator-card {
    gap: 1.2rem;
  }

  .input-box {
    font-size: 0.9rem;
  }

  .range-limits {
    font-size: 0.68rem;
  }

  .results-group .amount {
    font-size: 1.4rem;
  }

  .features {
    padding: 3rem 1rem 2rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .feature-item {
    align-items: center;
  }

  .feature-text {
    min-width: 0;
  }

  .feature-text h3,
  .feature-text p {
    overflow-wrap: anywhere;
  }

  .review-text {
    font-size: 0.82rem;
  }

  .testimonial-carousel {
    min-height: 220px;
  }

  .payment-icons {
    gap: 0.75rem;
    padding: 0.5rem;
  }

  .payment-logo {
    height: 24px;
    max-width: 72px;
  }

  .footer .container {
    padding: 0 1rem;
  }

  .contact-list li {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .form-page main {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .form-container,
  .confirmation-card {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
  }

  .form-page fieldset {
    padding: 0.9rem;
  }

  .form-header {
    margin: -1rem -1rem 1.5rem;
    padding: 2.5rem 1rem;
    border-radius: 12px 12px 0 0;
  }

  .form-header h2 {
    font-size: 1.35rem;
  }

  .form-header p,
  .confirmation-header p,
  .confirmation-details {
    overflow-wrap: anywhere;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    min-width: 0;
    max-width: 100%;
  }

  .form-actions .btn-submit,
  .btn-cancel,
  .confirmation-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .header-row {
    align-items: flex-start;
  }

  .language-switcher select {
    min-width: 48px;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .cta-link,
  .btn-submit {
    font-size: 0.76rem;
    padding: 0.75rem 0.9rem;
  }
}

@media (max-width: 430px) {
  header {
    padding: 0.85rem 0.75rem;
  }

  .logo-placeholder {
    width: 56px;
    height: 56px;
  }

  .brand-tagline,
  .company-tagline {
    display: none;
  }

  .nav-wrap {
    width: 100%;
    align-items: center;
  }

  .language-switcher {
    margin-left: auto;
  }

  .testimonial-carousel {
    min-height: 260px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 1rem, 1200px);
  }

  .nav-wrap {
    width: 100%;
  }

  .language-switcher {
    width: 100%;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.82rem;
  }

  .payment-icons {
    flex-direction: column;
  }

  .company-name {
    font-size: 0.88rem;
    letter-spacing: 0.2px;
  }

  .nav-links-bar {
    gap: 0.65rem;
  }

  .hero {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .calculator-card {
    padding: 1rem;
  }
}

@media (max-width: 360px) {
  .logo-section {
    width: 100%;
  }

  .company-name {
    font-size: 0.96rem;
  }

  .cta-link,
  .btn-submit {
    font-size: 0.72rem;
    padding: 0.7rem 0.8rem;
  }

  .feature-item {
    gap: 0.75rem;
  }
}
