/* Mio Decor 8.64.14 — one source of truth for contact and footer.
   Visual reference: Figma Mobile - Home, 390px. Component styles only. */
.contact-section {
  background: linear-gradient(114deg, #2b7ec1 0%, #5795bd 100%);
  color: #fff;
  padding: 62px 0 42px;
}
.contact-section .contact-grid {
  width: min(var(--mio-container-max), calc(100% - 2 * var(--mio-container-gutter)));
  max-width: var(--mio-container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}
.contact-copy, .contact-form { min-width: 0; }
.contact-copy h2 {
  color: #fff;
  margin: 0 0 20px;
  max-width: 560px;
  font: 750 clamp(27px, 2.5vw, 38px)/1.27 var(--mio-font-heading);
  letter-spacing: -.45px;
  text-wrap: pretty;
}
.contact-copy > p {
  max-width: 490px;
  margin: 0;
  font: 400 14px/1.6 var(--mio-font-body);
  color: #f4f9fc;
}
.contact-details {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.contact-details li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  font: 400 14px/1.45 var(--mio-font-body);
}
.contact-details .mio-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #fff;
}
.contact-details a, .contact-details span {
  color: #fff;
  min-width: 0;
  overflow-wrap: anywhere;
}
.contact-details a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-form {
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  padding: 26px 27px 28px;
  background: #fff;
  color: #1c2936;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(18, 65, 99, .1);
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.contact-form label { display: block; min-width: 0; margin: 0; font-weight: 400; }
.contact-form input:not([type="hidden"]):not([type="file"]),
.contact-form textarea {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #d5e0e8;
  border-radius: 6px;
  color: #1c2936;
  font: 400 13px/1.5 var(--mio-font-body);
  box-shadow: none;
}
.contact-form input:not([type="hidden"]):not([type="file"]) {
  height: 46px;
  padding: 0 12px;
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: #778797;
  opacity: 1;
}
.contact-form .message-field { margin-top: 14px; }
.contact-form textarea {
  resize: none;
  height: 112px;
  min-height: 100px;
  padding: 12px;
}
.contact-form-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: 18px;
  margin-top: 17px;
}
.contact-form .file-field { display: block; position: relative; cursor: pointer; }
.contact-form .file-title {
  display: block;
  margin-bottom: 10px;
  color: #2f3d4a;
  font: 500 12px/1.35 var(--mio-font-body);
}
.contact-form .file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  clip-path: inset(50%);
}
.contact-form .file-drop {
  display: flex;
  min-height: 70px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border: 1px dashed #c7d6e2;
  border-radius: 6px;
  color: #7d8b99;
  font: 400 11px/1.5 var(--mio-font-body);
  transition: background-color .15s, border-color .15s;
  overflow-wrap: anywhere;
}
.contact-form .file-drop b { color: #408cc0; font-weight: 600; }
.contact-form .file-field.is-dragover .file-drop,
.contact-form .file-field:hover .file-drop {
  background: #f0f7fc;
  border-color: #458cbd;
}
.contact-form .file-field small {
  display: block;
  margin-top: 8px;
  color: #8795a4;
  font: 400 11px/1.4 var(--mio-font-body);
}
.contact-form .file-field .file-feedback {
  display: block;
  margin-top: 4px;
  font: 500 11px/1.4 var(--mio-font-body);
  color: #225f92;
  overflow-wrap: anywhere;
}
.contact-form .file-field .file-feedback:empty { display: none; }
.contact-form .btn[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  margin: 0 0 22px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #5691b8;
  font: 600 12px/1.25 var(--mio-font-heading);
  cursor: pointer;
}
.contact-form .btn[type="submit"]:hover { background: #367eb0; }
.contact-form .btn[type="submit"] span { font-size: 19px; line-height: 1; }
.contact-form .form-note {
  margin: 14px 0 0;
  font: 500 13px/1.5 var(--mio-font-body);
  color: #a43131;
}
.contact-form .form-note.success { color: #206944; }
.site-footer {
  margin: 0;
  background: #4c8db9;
  color: #fff;
  padding: 17px 0;
  border: 0;
}
.site-footer .footer-row {
  width: min(var(--mio-container-max), calc(100% - 2 * var(--mio-container-gutter)));
  max-width: var(--mio-container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
  min-width: 0;
  font: 400 11px/1.5 var(--mio-font-body);
}
.site-footer .footer-links, .site-footer .footer-links ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer a { color: inherit; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 1100px) {
  .contact-section .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  .contact-section { padding: 55px 0 33px; }
  .contact-section .contact-grid { width: calc(100% - 20px); gap: 46px; }
  .contact-copy { padding: 0 10px; }
  .contact-copy h2 {
    max-width: 360px;
    margin-bottom: 19px;
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -.3px;
  }
  .contact-copy > p { font-size: 13px; line-height: 1.6; }
  .contact-details { gap: 13px; margin-top: 22px; }
  .contact-details li { gap: 11px; font-size: 13px; line-height: 1.45; }
  .contact-details .mio-icon { width: 17px; height: 17px; flex-basis: 17px; }
  .contact-form { padding: 26px 26px 25px; border-radius: 12px; }
  .contact-form .form-row { gap: 11px; }
  .contact-form input:not([type="hidden"]):not([type="file"]) {
    height: 36px;
    padding: 0 7px;
    font-size: 10.5px;
  }
  .contact-form textarea { height: 88px; min-height: 88px; padding: 11px; font-size: 12px; }
  .contact-form .message-field { margin-top: 12px; }
  .contact-form-bottom { grid-template-columns: 128px minmax(0,1fr); gap: 17px; margin-top: 13px; }
  .contact-form .file-title { font-size: 11px; margin-bottom: 10px; }
  .contact-form .file-drop { min-height: 61px; padding: 7px; font-size: 10.5px; }
  .contact-form .file-field small { font-size: 10.5px; margin-top: 7px; }
  .contact-form .btn[type="submit"] { min-height: 46px; margin-bottom: 23px; font-size: 11px; padding: 9px 12px; }
  .site-footer { padding: 17px 0; }
  .site-footer .footer-row { font-size: 11px; text-align: center; justify-content: center; }
}
@media (min-width: 431px) and (max-width: 760px) {
  .contact-form input:not([type="hidden"]):not([type="file"]) { font-size: 14px; height: 44px; }
  .contact-form textarea { font-size: 14px; }
  .contact-form .file-drop { font-size: 12px; }
}
@media (max-width: 359px) {
  .contact-copy h2 { font-size: 20px; }
  .contact-section .contact-grid { gap: 30px; }
  .contact-form { padding: 20px; }
  .contact-form .form-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .contact-form input:not([type="hidden"]):not([type="file"]) { height: 44px; font-size: 16px; }
  .contact-form .contact-form-bottom { grid-template-columns: minmax(0, 1fr); }
  .contact-form .btn[type="submit"] { margin: 0; min-height: 46px; font-size: 12px; }
  .contact-form textarea { font-size: 16px; }
}
