/* Contact page */

.contact-title {
  font-size: 2.4rem;
  margin-bottom: 0.8em;
  color: #ff0000;
}

.contact-company {
  font-size: 1.6rem;
  margin-bottom: 0.4em;
}

.contact-address {
  margin-bottom: 1.5em;
  line-height: 1.6;
}

.contact-address a {
  color: midnightblue;
  text-decoration: none;
}

.contact-address a:hover,
.contact-address a:focus {
  text-decoration: underline;
}

.contact-message {
  margin: 0 0 1.5em;
  padding: 1rem 1.2rem;
  border: 1px solid #cfcfcf;
  background: #f7f7f7;
}

.contact-message--success {
  border-color: #2e7d32;
  background: #e8f5e9;
  color: #1b5e20;
}

.contact-message--error {
  border-color: #c62828;
  background: #ffebee;
  color: #b71c1c;
}

.contact-form {
  max-width: 520px;
  margin: 0 0 2.5em;
}

.form-row {
  margin-bottom: 1.2em;
}

.form-row label {
  display: block;
  margin-bottom: 0.3em;
  font-weight: bold;
}

.form-row .required {
  color: #c00;
}

.name-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.name-fields .name-field {
  flex: 1 1 200px;
}

.name-fields .name-field label {
  font-weight: normal;
  font-size: 1.3rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  background: #fff;
  color: #404040;
  font-family: inherit;
  font-size: 1.6rem;
  line-height: 1.4;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: thin dotted #333;
  border-color: #666;
}

.turnstile-row {
  margin-top: 0.4em;
  margin-bottom: 1.4em;
}

.contact-form .btn-submit {
  display: inline-block;
  margin-top: 0.4em;
  padding: 0.7rem 1.6rem;
  border: 1px solid #333;
  background: #333;
  color: #fff;
  font-family: inherit;
  font-size: 1.6rem;
  cursor: pointer;
}

.contact-form .btn-submit:hover,
.contact-form .btn-submit:focus {
  background: #000;
  color: #fff;
  outline: thin dotted red;
}

/* Honeypot — hidden from people, visible to naive bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-map {
  margin-top: 1em;
  max-width: 600px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  max-width: 600px;
  height: 450px;
  border: 0;
}

@media screen and (max-width: 700px) {
  .contact-title {
    font-size: 2rem;
  }

  .contact-map iframe {
    height: 300px;
  }
}
