:root {
  --action-text-color: #253cc5;
  --action-text-color-dark: #16257f;
  --secondary-color: #28a745;
  --accent-color: #ffc107;
  --primary-text-color: #000;
  --secondary-text-color: #8f99ac;
  --form-heading-color: #8f99ac;
  --form-placeholder-color: #8f99ac;
  --form-text-color: #000;
  --background-color: #fff;
  --muted-text-color: #6b7280;
  --card-background: #ffffff;
  --border-color: #e5e7eb;
  --input-background: #f9fafb;
  --error-color: #ef4444;
  --success-color: #16a34a;
  --footer-bg: #f4f5f9;
  --font-family: "Inter", -apple-system, "system-ui", "Segoe UI", Helvetica,
    "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  --heading-font-family: "Poppins", -apple-system, "system-ui", "Segoe UI",
    Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji",
    "Segoe UI Symbol";
  --max-container-width: 1000px;
  --padding: 20px;
  --small-border-radius: 8px;
  --medium-border-radius: 16px;
  --large-border-radius: 30px;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  font-family: var(--font-family);
  color: var(--primary-text-color);
}

p,
a,
ol,
li {
  font-family: var(--font-family);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font-family);
  font-weight: 600;
}

/* Layout helpers / utilities */

.container {
  max-width: var(--max-container-width);
  margin: 0 auto;
  padding: 0 var(--padding);
}

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

/* Navigation */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
}

.nav .logo img {
  height: 40px;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 28px 8px 12px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  line-height: 1;
  background-image: linear-gradient(transparent, transparent),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 20 20" fill="%238F99AC"><path d="M5.5 7.5l4.5 5 4.5-5"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--action-text-color);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--small-border-radius);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.2px;
  border: none;
  appearance: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--action-text-color-dark);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(37, 60, 197, 0.3);
  outline-offset: 2px;
}

.btn.btn-full {
  width: 100%;
}

.btn:disabled {
  background-color: #f3f5f9;
  color: #667085;
  border: 1px solid #d7deea;
  cursor: not-allowed;
  transform: none;
}

/* Hero */

.hero {
  text-align: center;
  padding: 30px 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: flex-start;
  padding-bottom: 40px;
}

.hero-copy {
  text-align: left;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.05em;
  margin: 0;
}

.hero .sub {
  font-size: 1.5em;
  line-height: 35px;
  color: var(--secondary-text-color);
}

@media (max-width: 768px) {
  .hero {
    padding: 0;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2em;
  }

  .hero .sub {
    font-size: 1.2em;
  }

  .hero p {
    font-size: 1em;
  }
}

/* Shared image gallery */

.image-gallery {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--padding);
  margin-bottom: 40px;
}

.image-gallery img {
  display: block;
  border-radius: var(--medium-border-radius);
  max-width: 100%;
}

.gallery-image-1,
.gallery-image-3,
.gallery-image-5 {
  height: 420px;
}

.gallery-image-2,
.gallery-image-4 {
  height: 300px;
}

@media (max-width: 768px) {
  .gallery-image-1,
  .gallery-image-3,
  .gallery-image-5 {
    width: 100%;
    height: 300px;
  }

  .gallery-image-2,
  .gallery-image-4 {
    width: 200px;
    height: 200px;
  }
}

/* Card + form */

.card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--medium-border-radius);
  padding: 24px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  text-align: left;
  position: relative;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  min-width: 0;
}

.label {
  font-size: 0.9em;
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--form-heading-color);
}

.field input,
.field select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--input-background);
  border: 1px solid var(--border-color);
  border-radius: var(--small-border-radius);
  padding: 12px;
  font-family: var(--font-family);
  font-size: 1em;
  color: var(--form-text-color);
}

.field input::placeholder {
  color: var(--form-placeholder-color);
}

.phone-field {
  position: relative;
  display: block;
}

.phone-prefix {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-family: var(--font-family);
  font-size: 1em;
  color: var(--form-placeholder-color);
  white-space: nowrap;
  pointer-events: none;
}

.phone-field input {
  padding-left: 58px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--action-text-color);
  box-shadow: 0 0 0 3px rgba(37, 60, 197, 0.15);
}

.field input.error,
.field select.error {
  border-color: var(--error-color);
  background: #fff5f5;
}

.field input[type="date"]:invalid {
  color: var(--form-placeholder-color);
}

.field input[type="date"]:valid {
  color: var(--form-text-color);
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.55;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(transparent, transparent),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 20 20" fill="%238F99AC"><path d="M5.5 7.5l4.5 5 4.5-5"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.field select:required:invalid {
  color: var(--form-placeholder-color);
}

.field select option {
  color: var(--form-text-color);
}

.address-detail-grid {
  margin-top: -4px;
}

.address-detail-grid.is-hidden {
  display: none;
}

.hint {
  font-size: 0.75em;
  color: var(--error-color);
  display: none;
}

.hint.show {
  display: block;
}

#status {
  margin-top: 12px;
}

.status {
  font-size: 0.9em;
  color: var(--secondary-text-color);
}

.status.success {
  color: var(--success-color);
}

.status.error {
  color: var(--error-color);
}

/* How it works */

.how-it-works {
  text-align: center;
  padding: 30px 0;
}

.how-it-works h2 {
  font-size: 2em;
  margin-bottom: 40px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: var(--padding);
}

.step {
  width: 30%;
  text-align: left;
  padding: var(--padding);
  border-radius: var(--medium-border-radius);
}

.step:nth-child(1) {
  background-color: #e3f2fd;
}

.step:nth-child(2) {
  background-color: #e8f5e9;
}

.step:nth-child(3) {
  background-color: #fff3e0;
}

.step h3 {
  font-size: 2em;
  color: var(--background-color);
  background-color: var(--action-text-color);
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step:nth-child(2) h3 {
  background-color: var(--secondary-color);
}

.step:nth-child(3) h3 {
  background-color: var(--accent-color);
}

.step h4 {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.step p {
  font-size: 1em;
  color: var(--primary-text-color);
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: none;
    width: 90%;
  }
}

@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .step h3 {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1.5em;
  }
}

/* Use cases */

.use-cases {
  background: #f9fafb;
  width: 100%;
  position: relative;
  margin: 0 auto;
  padding: 60px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.use-cases h2 {
  font-size: 2em;
  margin-bottom: 24px;
}

.use-cases-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.use-cases-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary-text-color);
  white-space: nowrap;
}

.use-cases-gallery.image-gallery {
  margin: 40px 0;
  justify-content: center;
}

/* FAQ */

.faq {
  padding: 30px 0;
}

.faq h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
}

.faq-item {
  max-width: 700px;
  margin: 0 auto 20px;
}

.faq-item h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  cursor: pointer;
}

.faq-item .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
  max-height: 200px;
}

.faq-item p {
  font-size: 1em;
  color: var(--primary-text-color);
}

.faq-item .faq-content a {
  color: var(--action-text-color);
  text-decoration: none;
  font-weight: 600;
}

.faq-item .faq-content a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .faq-item {
    width: 90%;
  }
}

/* Legal pages */

.legal-page {
  padding: 40px 0 80px;
}

.legal-card {
  margin-top: 30px;
}

.legal-header h1 {
  font-size: 2.4em;
  margin-bottom: 10px;
}

.legal-card p,
.legal-card li {
  line-height: 1.6;
  color: var(--primary-text-color);
}

.legal-card ul,
.legal-card ol {
  padding-left: 20px;
  margin: 12px 0;
}

.legal-section + .legal-section {
  margin-top: 30px;
}

.legal-section h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Footer */

footer {
  display: flex;
  justify-content: space-between;
  padding: 30px;
  margin-bottom: 30px;
  background-color: var(--footer-bg);
  border-radius: var(--large-border-radius);
}

.footer-logo img {
  height: 40px;
}

.footer-copy {
  font-family: var(--font-family);
  color: var(--secondary-text-color);
  margin-top: 12px;
  font-size: 0.9em;
}

.footer-links {
  display: grid;
  justify-content: center;
  gap: var(--padding);
}

.footer-links a {
  text-decoration: none;
  color: var(--primary-text-color);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--action-text-color);
}

@media (max-width: 768px) {
  footer {
    display: block;
    text-align: center;
  }

  .footer-links {
    margin: 40px 0;
  }
}

/* Toast */

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #111827;
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--small-border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-family);
  display: none;
}

.toast.show {
  display: inline-block;
}
