/* Desktop: Frame 760 (2082:175). Mobile: Silver-Home Page EN_Mobile (588:1296) — contact block ~402×783, image 402×218 */

.contact-section {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--silver-inset-x) 106px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

.contact-section__inner {
  max-width: none;
  margin: 0 auto;
}

.contact-section__header {
  margin: 0 0 77px;
  text-align: center;
}

.contact-section .contact-section__title {
  margin: 0 0 10px;
  font-family: var(--font-konnect);
  font-size: var(--silver-home-title);
  font-weight: 700;
  line-height: 1.3;
  color: #121211;
}

.contact-section .contact-section__subtitle {
  margin: 0 auto;
  max-width: 900px;
  font-family: var(--font-konnect);
  font-size: var(--silver-home-subtitle);
  font-weight: 400;
  line-height: 1.35;
  color: #000;
}

.contact-section__body {
  display: grid;
  grid-template-columns: minmax(0, 629fr) minmax(0, 629fr);
  gap: 62px;
  align-items: start;
}

.contact-section__media {
  width: 100%;
  max-height: 804px;
}

.contact-section__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 804px;
  object-fit: contain;
  object-position: center;
}

.contact-section__form {
  width: 100%;
  min-width: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
}

.contact-form__label {
  font-family: "Manrope", var(--font-konnect), sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: #0a0a0a;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  min-height: 65px;
  padding: 18px 20px;
  border: 1.3px solid #121211;
  border-radius: 0;
  background: #fff;
  color: #0a0a0a;
  font-family: "Inter", sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #0a0a0a;
  opacity: 1;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.contact-form__select-wrap {
  position: relative;
}

.contact-form__select {
  appearance: none;
  padding-right: 48px;
  cursor: pointer;
}

.contact-form__select--country {
  background-color: #f3f3f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230a0a0a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
}

.contact-form__select--country option {
  background: #fff;
  color: #0a0a0a;
}

.contact-form__select-flag {
  position: absolute;
  top: 50%;
  left: 20px;
  z-index: 1;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.contact-form__select--country {
  padding-left: 52px;
}

.contact-form__phone {
  display: grid;
  grid-template-columns: 127px minmax(0, 1fr);
  gap: 10px;
}

.contact-form__phone-prefix {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 65px;
  padding: 18px 12px;
  border: 1.3px solid #121211;
  background: #f3f3f5;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
  color: #0a0a0a;
  white-space: nowrap;
}

.contact-form__flag {
  font-size: 21px;
  line-height: 1;
}

.contact-form__textarea {
  min-height: 143px;
  resize: vertical;
}

.contact-form__submit {
  width: 100%;
  min-height: 73px;
  margin: 0;
  padding: 16px 32px;
  border: none;
  border-radius: 0;
  background: #f0d29f;
  color: #fff;
  font-family: var(--font-konnect);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact-form__submit:hover {
  opacity: 0.92;
}

/* Tablet: home section only — contact page keeps two columns until 992px */
@media (max-width: 1200px) {
  .contact-section:not(.contact-section--page) .contact-section__body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-section:not(.contact-section--page) .contact-section__media,
  .contact-section:not(.contact-section--page) .contact-section__media img {
    max-height: none;
  }
}

/* Mobile Figma (402px): 15px inset, 20px title, full-bleed 402×218 image, compact form */
@media (max-width: 992px) {
  .contact-section {
    padding: 40px 0 48px;
  }

  .contact-section__inner {
    padding: 0 var(--silver-inset-x);
  }

  .contact-section__header {
    margin-bottom: 20px;
  }

  .contact-section .contact-section__title {
    margin-bottom: 6px;
  }

  .contact-section .contact-section__subtitle {
    max-width: min(320px, 100%);
  }

  .contact-section__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 372px;
    margin: 0 auto;
  }

  .contact-section__media {
    width: calc(100% + (var(--silver-inset-x) * 2));
    max-width: none;
    margin-right: calc(-1 * var(--silver-inset-x));
    margin-left: calc(-1 * var(--silver-inset-x));
  }

  .contact-section__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 402 / 218;
    object-fit: cover;
    object-position: center;
  }

  .contact-form {
    gap: 14px;
  }

  .contact-form__field {
    gap: 6px;
  }

  .contact-form__label {
    font-size: 13px;
    font-weight: 600;
  }

  .contact-form__input,
  .contact-form__select,
  .contact-form__textarea,
  .contact-form__phone-prefix {
    min-height: 44px;
    padding: 10px 12px;
    border-width: 1px;
    font-size: 13px;
    line-height: 1.35;
  }

  .contact-form__select {
    padding-right: 36px;
  }

  .contact-form__select--country {
    padding-left: 40px;
    background-position: right 12px center;
    background-size: 10px 6px;
  }

  .contact-form__select-flag {
    left: 12px;
    font-size: 14px;
  }

  .contact-form__phone {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
  }

  .contact-form__phone-prefix {
    gap: 4px;
    padding: 10px 6px;
  }

  .contact-form__flag {
    font-size: 14px;
  }

  .contact-form__textarea {
    min-height: 88px;
    resize: vertical;
  }

  .contact-form__submit {
    min-height: 48px;
    margin-top: 4px;
    padding: 12px 20px;
    font-size: 16px;
    line-height: 1.4;
  }
}

@media (max-width: 640px) {
  .contact-section {
    padding: 32px 0 40px;
  }

  .contact-section__inner {
    padding: 0 var(--silver-inset-x);
  }

  .contact-section__header {
    margin-bottom: 16px;
  }

  .contact-section__body {
    gap: 16px;
    max-width: 100%;
  }

  .contact-section__media {
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-left: -12px;
  }

  .contact-form {
    gap: 12px;
  }

  .contact-form__label {
    font-size: 12px;
  }

  .contact-form__input,
  .contact-form__select,
  .contact-form__textarea,
  .contact-form__phone-prefix {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .contact-form__phone {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 6px;
  }

  .contact-form__textarea {
    min-height: 80px;
  }

  .contact-form__submit {
    min-height: 44px;
    font-size: 15px;
  }
}
