* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  margin-left: 10px;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "courier-prime", "Courier New", Courier, monospace;
  font-size: 13px;
  color: #2c2a29;
  background: #f4f0e8;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 8vh 20px 4vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.image {
  margin-bottom: 40px;
  display: flex;
  overflow: hidden;
}

.image img {
  width: 160px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.intro {
  width: min(390px, 100%);
  margin-bottom: 40px;
}

.intro p {
  margin: 0;
  line-height: 1.18;
}

.contact-actions {
  display: inline-flex;
  gap: 18px;
  margin-top: 24px;
}

.text-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.text-link:hover {
  background: transparent;
  color: #666;
}

.contact-dialog {
  position: fixed;
  top: 50%;
  bottom: auto;
  left: 510px;
  right: auto;
  width: min(390px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  margin: 0;
  padding: 28px;
  border: 0;
  color: #2c2a29;
  background: #f4f0e8;
  text-align: left;
  transform: translateY(-50%);
}

.contact-dialog::backdrop {
  background: #f4f0e8;
}

.dialog-image {
  display: none;
  width: 100%;
  height: 70px;
  margin-bottom: 18px;
}

.dialog-image img {
  width: 160px;
  max-width: 100%;
  height: auto;
}

.close-dialog {
  display: none;
}

.enquiry-form {
  width: min(390px, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.enquiry-form label {
  display: block;
  margin-bottom: 24px;
}

.enquiry-form label > span {
  display: block;
  margin-bottom: 6px;
}

.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form input[type="tel"],
.enquiry-form textarea {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 1px solid #bdbdbd;
  border-radius: 0;
  outline: none;
  padding: 0 0 7px;
  background: transparent;
  font: inherit;
  color: inherit;
}

.enquiry-form textarea {
  resize: none;
  height: 110px;
  overflow-y: auto;
  scrollbar-width: none;
}

.enquiry-form textarea::-webkit-scrollbar {
  display: none;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  border-bottom-color: #2c2a29;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}

legend {
  padding: 0;
  margin-bottom: 8px;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.options label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.options label > span {
  margin-bottom: 0;
  line-height: 1;
}

.options input {
  appearance: none;
  width: 12px;
  height: 12px;
  margin: 0;
  border: 1px solid #2c2a29;
  background: #f4f0e8;
  cursor: pointer;
}

.options input:checked {
  background: #2c2a29;
}

button {
  display: block;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #2c2a29;
  background: #f4f0e8;
  color: #2c2a29;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: #2c2a29;
  color: #f4f0e8;
}

.hidden {
  position: absolute;
  left: -9999px;
}

@media (max-width: 999px) {
  html,
  body {
    margin-left: 0;
  }

  .close-dialog {
    display: none;
  }

  .page {
    align-items: center;
  }

  .image {
    width: min(300px, calc(100vw - 40px));
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .contact-dialog {
  top: 0 !important;
  bottom: auto;
  left: auto;
  right: 0;
  width: 100%;
  height: 100dvh;
  max-height: none;
  max-width: none;
  margin: 0;
  padding: 8vh 20px 40px;
  border: 0;
  overflow-y: auto;
  box-sizing: border-box;
  transform: none !important;
}

  .dialog-image {
    display: flex;
    height: auto;
    margin-bottom: 20px;
  }


  .close-dialog {
    display: block;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
  }

    .enquiry-form input[type="text"],
  .enquiry-form input[type="email"],
  .enquiry-form input[type="tel"],
  .enquiry-form textarea {
    font-size: 16px;
  }

}
