/*
 * finshark-web - static site overrides
 *
 * Loaded after the theme's main.css on every page. Its only job is to style the
 * blocks that replaced the WordPress (Forminator) contact forms, which no longer
 * have a server to post to. Everything else is the original theme, untouched.
 */

.static-contact-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.static-contact-block__text {
  margin: 0 0 28px;
}

.static-contact-block__action {
  margin: 0;
}

/* .btn is the theme's own button class, so the CTA matches the rest of the site */
.static-contact-block__action .btn {
  display: inline-block;
}

/* ---------------------------------------------------------------------------
 * Contact form
 *
 * Replaces the WordPress (Forminator) forms. There is no server, so the form
 * composes a prefilled mailto:. See contact-form.js.
 * ------------------------------------------------------------------------- */

.contact-form-block {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.contact-form__row label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.contact-form__row .required {
  color: #c0392b;
}

.contact-form__row input,
.contact-form__row select,
.contact-form__row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd6dd;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: #011025;
  box-sizing: border-box;
}

.contact-form__row textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form__row input:focus,
.contact-form__row select:focus,
.contact-form__row textarea:focus {
  outline: 2px solid #011025;
  outline-offset: 1px;
  border-color: #011025;
}

.contact-form__row input:invalid:not(:placeholder-shown),
.contact-form__row textarea:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}

.contact-form__hint {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.75;
}

.contact-form__actions {
  margin-top: 28px;
}

/* .btn is the theme's own button class, so the CTA matches the rest of the site */
.contact-form__actions .btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.contact-form__status {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #cfd6dd;
  border-left: 4px solid #011025;
  border-radius: 4px;
  background: #f5f7f9;
}

.contact-form__status p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
}

.contact-form__status p:last-child {
  margin-bottom: 0;
}

.contact-form__status-address {
  font-weight: 700;
  word-break: break-all;
}

.contact-form__copy {
  margin-top: 4px;
  padding: 8px 16px;
  border: 1px solid #011025;
  border-radius: 4px;
  background: #fff;
  color: #011025;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.contact-form__copy:hover {
  background: #011025;
  color: #fff;
}

.contact-form__noscript {
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid #cfd6dd;
  border-radius: 4px;
  background: #f5f7f9;
  font-size: 15px;
  line-height: 1.6;
}
