.contact-main {
  padding-top: max(4vw, calc(3.75rem + 2px));
}

.contact-hero {
  position: relative;
  width: 100%;
  height: 18rem;
  overflow: hidden;
  background: #111;
}

.contact-hero picture,
.contact-hero img {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-hero img { object-fit: cover; }

.contact-hero__inner {
  position: absolute;
  inset: 0;
  width: 60vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.contact-hero h1 {
  margin: 0;
  color: #e3e3e3;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.2;
}

.contact-section {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 5.25rem) 0;
}

.contact-wrapper {
  display: flex;
  width: 60vw;
  gap: 1.875rem;
}

.contact-info,
.contact-form-panel { flex: 1; min-width: 0; }

.contact-info {
  padding-right: 1.875rem;
  border-right: .0625rem solid #e5e5e5;
}

.info-title {
  margin: 0 0 1.25rem;
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
}

.company-name {
  margin: 0 0 1.875rem;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.info-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin: .125rem .75rem 0 0;
  display: inline-block;
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.info-icon--office {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3540b' stroke-width='2'%3E%3Cpath d='M3 21h18M5 21V8l7-5 7 5v13M9 21v-7h6v7M9 10h.01M15 10h.01'/%3E%3C/svg%3E");
}

.info-icon--factory {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3540b' stroke-width='2'%3E%3Cpath d='M3 21V10l6 3V9l6 4V5h4l2 16H3Z'/%3E%3Cpath d='M7 17h2m3 0h2m3 0h2'/%3E%3C/svg%3E");
}

.info-icon--website {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3540b' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E");
}

.info-icon--email {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3540b' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.info-label {
  display: block;
  margin-bottom: .25rem;
  color: #333;
  font-size: .875rem;
  font-weight: 600;
}

.info-value {
  display: block;
  color: #666;
  font-size: .875rem;
  line-height: 1.6;
}

a.info-value:hover { color: #e3540b; }

.contact-socials {
  position: relative;
  display: flex;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-socials a,
.contact-socials span {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: .75rem;
  transition: background-color .3s;
}

.contact-socials a:hover { background-color: #e3540b; }
.contact-socials img { width: 1.125rem; height: 1.125rem; object-fit: contain; }

.contact-socials li { position: relative; }
.contact-social-qr {
  position: absolute;
  z-index: 10;
  right: 50%;
  bottom: calc(100% + .75rem);
  width: 11.5rem;
  padding: .75rem;
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 .25rem 1.25rem rgb(0 0 0 / 30%);
  opacity: 0;
  visibility: hidden;
  transform: translate(50%, .5rem);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.contact-social-qr img { width: 10rem; height: 10rem; }
.contact-socials li:hover .contact-social-qr,
.contact-socials li:focus-within .contact-social-qr { opacity: 1; visibility: visible; transform: translate(50%, 0); }

.form-title {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin: 0 0 1.5rem;
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
}

.form-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e3540b'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 4-8 5-8-5V6l8 5 8-5v2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.form-success,
.form-global-error {
  margin: 0 0 1.25rem 8.75rem;
  padding: .75rem 1rem;
  font-size: .8125rem;
}

.form-success { color: #237804; background: #f6ffed; border: 1px solid #b7eb8f; }
.form-global-error { color: #a8071a; background: #fff1f0; border: 1px solid #ffa39e; }
.form-global-error ul { margin: 0; padding-left: 1.1rem; }

.form-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.form-row label {
  width: 7.5rem;
  margin-right: 1.25rem;
  flex-shrink: 0;
  color: #333;
  font-size: .875rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.required { margin-right: .125rem; color: #e3540b; }
.input-wrapper { flex: 1; }

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  height: 2.25rem;
  padding: 0 1rem;
  color: #333;
  background-color: #f0f0f0;
  border: 0;
  border-radius: 0;
  font-size: .875rem;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus { background-color: #e8e8e8; outline: 1px solid #aaa; }

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder { color: #bbb; }

.input-wrapper select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23999' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.input-wrapper textarea {
  height: 7.5rem;
  padding: .75rem 1rem;
  resize: none;
  font-family: inherit;
  line-height: 1.5;
}

.error-message {
  position: absolute;
  bottom: -1.125rem;
  left: 8.75rem;
  color: #ff4d4f;
  font-size: .75rem;
}

.form-row--content { align-items: flex-start; margin-bottom: 1.875rem; }
.form-row--content label { margin-top: .5rem; }
.form-row--submit { justify-content: center; margin-top: .625rem; }

.form-row--submit button {
  width: 7.5rem;
  height: 2.25rem;
  color: #fff;
  background: #e3540b;
  border: 0;
  border-radius: .125rem;
  font-size: .875rem;
  cursor: pointer;
  transition: opacity .3s;
}

.form-row--submit button:hover { opacity: .9; }
.form-row--submit button:focus-visible { outline: 2px solid #333; outline-offset: 2px; }
.contact-form-panel form:invalid .form-row--submit button { opacity: .5; }

.contact-map { margin: 0; overflow: hidden; }
.contact-map img { width: 100%; height: auto; display: block; }

@media (max-width: 1280px) {
  .contact-wrapper { gap: 1.25rem; }
  .contact-info { padding-right: 1.25rem; }
}

@media (max-width: 1024px) {
  .contact-main { padding-top: 6.25rem; }
  .contact-hero { height: 15rem; }
  .contact-hero__inner { width: calc(100% - 10rem); }
  .contact-hero h1 { font-size: 2.25rem; }
  .contact-wrapper { flex-direction: column; gap: 2.5rem; }
  .contact-info { padding: 0 0 1.875rem; border-right: 0; border-bottom: .0625rem solid #e5e5e5; }
}

@media (max-width: 767px) {
  .contact-hero { height: 12.5rem; }
  .contact-hero__inner { width: calc(100% - 2.5rem); }
  .contact-hero h1 { font-size: 2rem; }
  .contact-wrapper { width: 90vw; }
  .info-label, .info-value { font-size: .8125rem; }
  .form-success, .form-global-error { margin-left: 0; }
  .form-row { align-items: flex-start; flex-direction: column; }
  .form-row label { width: 100%; margin: 0 0 .5rem; text-align: left; }
  .input-wrapper { width: 100%; }
  .error-message { position: static; margin-top: .25rem; }
  .form-row--content label { margin-top: 0; }
  .form-row--submit button { width: 100%; }
}

@media (max-width: 520px) {
  .contact-main { padding-top: 3.75rem; }
  .contact-hero { height: 11.25rem; }
}

@media (max-width: 450px) {
  .contact-main { padding-top: 3.125rem; }
}
