/*
 * The contact page (template-contact.php). Plain CSS. The details card takes the
 * facilities cards' look (dark, with the light inner border); the form keeps the
 * theme's form styles.
 */
.mp-contact { padding: 56px 0 72px; }
.mp-contact__intro { max-width: 760px; margin: 0 auto 40px; text-align: center; color: #555; }
.mp-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }

.mp-contact__card { background: #2C2C2C; color: #fff; padding: 1.25rem; }
.mp-contact__card-in { border: 3px solid #EDEDED; padding: 28px 28px 32px; text-align: center; }
.mp-contact__card svg { display: block; margin: 0 auto 18px; }
.mp-contact__list { margin: 0 0 24px; }
.mp-contact__list dt { margin: 18px 0 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #F3BB00; }
.mp-contact__list dt:first-child { margin-top: 0; }
.mp-contact__list dd { margin: 0; font-size: 15px; line-height: 1.6; }
.mp-contact__list dd small { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); }
/* The card's links stand alone (not inside a sentence): yellow, underlined on hover and focus only. */
.wrap .mp-contact__card .mp-contact__list a:not(.btn):not(.nav-link), .wrap .mp-contact__card .mp-contact__list a:not(.btn):not(.nav-link):visited { color: #F3BB00; text-decoration: none; }
.wrap .mp-contact__card .mp-contact__list a:not(.btn):not(.nav-link):hover, .wrap .mp-contact__card .mp-contact__list a:not(.btn):not(.nav-link):focus-visible { color: #fff; text-decoration: underline; text-decoration-color: #F3BB00; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mp-contact__dir.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 28px; }

/* The form: a white card beside the dark one, in the booking card's language. */
.mp-contact__form { padding: 32px 36px 36px; background: #fff; border-radius: 4px; box-shadow: 0 0 10px rgba(153, 153, 153, .34); }
.mp-contact__form h2 { margin: 0 0 24px; padding: 0; font-size: 1.35rem; text-align: left; }
.mp-contact__form h2::after { display: none; }

.mp-cf { display: grid; gap: 18px; }
.mp-cf br { display: none; } /* wpautop's breaks between label text and field */
.mp-cf p { margin: 0; }
.mp-cf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mp-cf__field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.mp-cf__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #2C2C2C; }
.mp-cf__label::after { content: ' *'; color: #8A6A00; } /* every field is required; #8A6A00 is the yellow at 5:1 on white */
.mp-cf .wpcf7-form-control-wrap { display: block; }
.mp-cf input[type="text"], .mp-cf input[type="email"], .mp-cf select, .mp-cf textarea {
  display: block; width: 100%; padding: 0 14px; border: 1px solid #c4c4c4; border-radius: 4px; background: #fff;
  color: #2C2C2C; font: inherit; font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s;
}
.mp-cf input[type="text"], .mp-cf input[type="email"], .mp-cf select { height: 48px; }
.mp-cf textarea { min-height: 150px; padding: 12px 14px; resize: vertical; }
.mp-cf input:hover, .mp-cf select:hover, .mp-cf textarea:hover { border-color: #8f8f8f; }
.mp-cf input:focus, .mp-cf select:focus, .mp-cf textarea:focus { outline: 0; border-color: #2C2C2C; box-shadow: 0 0 0 3px rgba(243, 187, 0, .55); }
.mp-cf input.wpcf7-not-valid, .mp-cf select.wpcf7-not-valid, .mp-cf textarea.wpcf7-not-valid { border-color: #B3261E; }
.mp-cf .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: #B3261E; }

.mp-cf .mp-consent { margin: 0; }
.mp-cf__send.btn { width: 100%; height: 52px; font-family: inherit; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
.mp-cf__send.btn:hover:not(:disabled), .mp-cf__send.btn:focus { background: #2C2C2C; border-color: #2C2C2C; color: #fff; }

.mp-cf .wpcf7-spinner { display: none; margin: 8px auto 0; }
.mp-cf form.submitting .wpcf7-spinner, form.submitting .mp-cf .wpcf7-spinner { display: block; }
.mp-cf__note { margin: 0; font-size: 12px; line-height: 1.6; color: #666; text-align: center; }

/* Messages after sending. */
.mp-contact__form .wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border: 0; border-left: 4px solid #2C2C2C; border-radius: 4px; background: #F6F6F6; color: #2C2C2C; font-size: 14px; }
.mp-contact__form .wpcf7 form.sent .wpcf7-response-output { border-left-color: #2E7D32; background: #EEF6EE; }
.mp-contact__form .wpcf7 form.invalid .wpcf7-response-output,
.mp-contact__form .wpcf7 form.failed .wpcf7-response-output,
.mp-contact__form .wpcf7 form.spam .wpcf7-response-output { border-left-color: #B3261E; background: #FBEDEC; }

@media (max-width: 991px) {
  .mp-contact { padding: 40px 0 56px; }
  .mp-contact__form { padding: 24px 20px 28px; }
  .mp-contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .mp-contact__form { order: -1; } /* the form first on a phone: it is why people come */
}
@media (max-width: 575px) { .mp-cf__row { grid-template-columns: 1fr; } }
