:root {
  --contact-ink: #111111;
  --contact-muted: #555555;
  --contact-border: #d0d0d0;
  --contact-border-soft: #e8e8e8;
  --contact-card: #f5f5f5;
  --contact-card-hover: #ebebeb;
  --contact-accent: #80e5eb;
  --contact-accent-strong: #2ec4c4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--contact-ink);
  font-family: "Manrope", sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

.contact-page,
.contact-page button,
.contact-page input,
.contact-page textarea,
.contact-page label,
.contact-page p,
.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page h4,
.contact-page a,
.contact-page span {
  font-family: "Poppins", sans-serif;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  height: min(75vh, 720px);
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 1;
}

.contact-hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 78%;
}

.contact-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  padding: 40px 60px;
  color: #ffffff;
}

.contact-hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.contact-hero-content p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.contact-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 50px 40px 80px;
}

.contact-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.contact-form-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--contact-ink);
}

.contact-rpf-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 12px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: var(--contact-card);
  color: var(--contact-ink);
  text-decoration: none;
  transition: background 0.2s ease;
}

.contact-rpf-card:hover {
  background: var(--contact-card-hover);
}

.contact-rpf-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  flex-shrink: 0;
}

.contact-rpf-card-icon svg {
  width: 18px;
  height: 18px;
}

.contact-rpf-card-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--contact-ink);
}

.contact-rpf-card-text span {
  font-size: 0.75rem;
  color: #666666;
}

.contact-mandatory {
  margin: 0 0 32px;
  font-size: 0.8rem;
  color: #666666;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #222222;
}

.contact-form label .req {
  color: #cc0000;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--contact-border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: #222222;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--contact-accent);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.address-textarea {
  min-height: 60px;
}

.country-cards {
  display: flex;
  gap: 12px;
}

.country-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 1.5px solid var(--contact-border);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.country-card:hover {
  border-color: var(--contact-accent);
  background: #f7fefe;
}

.country-card.active {
  border-color: var(--contact-accent-strong);
  background: #edfafa;
  box-shadow: 0 0 0 3px rgba(46, 196, 196, 0.12);
}

.country-flag {
  width: 40px;
  height: 28px;
  object-fit: cover;
  border-radius: 3px;
}

.country-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #222222;
}

.country-fields {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease;
}

.country-fields.visible {
  max-height: 400px;
  opacity: 1;
}

.contact-privacy {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--contact-border-soft);
}

.contact-privacy h4 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--contact-ink);
}

.contact-privacy p {
  margin: 0 0 4px;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--contact-muted);
}

.contact-privacy a {
  color: #0a7aad;
  text-decoration: none;
}

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

.contact-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.contact-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--contact-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.contact-checkbox label {
  margin: 0;
  font-size: 0.8rem;
  color: #333333;
  cursor: pointer;
}

.contact-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.contact-status[data-state="error"] {
  color: #b42318;
}

.contact-status[data-state="success"] {
  color: #13795b;
}

.btn-submit {
  display: inline-block;
  margin-top: 28px;
  padding: 13px 48px;
  border: 0;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
}

.btn-submit:hover {
  background: #333333;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.form-success h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--contact-ink);
}

.form-success p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--contact-muted);
}

@media (max-width: 640px) {
  .contact-hero {
    height: auto;
    display: flex;
    flex-direction: column;
    background: #162124;
  }

  .contact-hero::after {
    display: none;
  }

  .contact-hero-img {
    width: 100%;
    height: 248px;
    object-fit: cover;
    object-position: center 74%;
  }

  .contact-hero-content {
    position: static;
    max-width: 100%;
    padding: 24px 20px 26px;
    background: #1a1a1a;
    color: #ffffff;
  }

  .contact-hero-content h1 {
    margin-bottom: 12px;
    font-size: 1.3rem;
  }

  .contact-hero-content p {
    font-size: 0.85rem;
  }

  .contact-section {
    padding: 36px 20px 60px;
  }

  .contact-form-header {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }

  .contact-rpf-card {
    width: 100%;
    min-width: unset;
    margin-top: 12px;
    margin-bottom: 28px;
  }

  .contact-mandatory {
    margin-bottom: 0;
  }
}
