/* Modern Contact Form — follows the theme's colours when available (HotShot: --coral etc.). */
.mcf {
  --mcf-accent: var(--coral, #D85A30);
  --mcf-ink: var(--dark, #2C2C2A);
  --mcf-mid: var(--mid, #6F6E69);
  --mcf-line: var(--border, #E3E1DA);
  --mcf-field: #FCFBF8;
  --mcf-card: var(--white, #FFFFFF);
  --mcf-radius: 10px;
  color: var(--mcf-ink);
  font-size: 15px;
  line-height: 1.6;
}
.mcf *, .mcf *::before, .mcf *::after { box-sizing: border-box; }
.mcf--card { background: var(--mcf-card); border: 1px solid var(--mcf-line); border-radius: 20px; padding: 36px 40px 40px; box-shadow: 0 10px 30px rgba(0,0,0,.04); }
.mcf-title { font-size: 26px; margin: 0 0 20px; }
.mcf-form { margin: 0; }
.mcf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.mcf-field { margin: 0 0 18px; }
.mcf-field > label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .01em; margin: 0 0 7px; color: var(--mcf-ink); }
.mcf-req { color: var(--mcf-accent); }
.mcf-opt { font-weight: 400; color: var(--mcf-mid); }
.mcf input[type="text"], .mcf input[type="email"], .mcf input[type="tel"], .mcf select, .mcf textarea {
  display: block; width: 100%; margin: 0; font: inherit; font-size: 15px; color: var(--mcf-ink);
  background: var(--mcf-field); border: 1px solid var(--mcf-line); border-radius: var(--mcf-radius);
  padding: 12px 14px; line-height: 1.4; box-shadow: none; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.mcf textarea { min-height: 160px; resize: vertical; }
.mcf select {
  cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888780' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.mcf select:has(option[value=""]:checked) { color: #A5A39C; }
.mcf input::placeholder, .mcf textarea::placeholder { color: #B4B2AB; opacity: 1; }
.mcf input:hover, .mcf select:hover, .mcf textarea:hover { border-color: #D2CFC6; }
.mcf input:focus, .mcf select:focus, .mcf textarea:focus {
  outline: none; background-color: #fff; border-color: var(--mcf-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mcf-accent) 15%, transparent);
}

.mcf-check label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; color: var(--mcf-mid); cursor: pointer; margin: 0; }
.mcf-check input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--mcf-accent); }
.mcf-check a { color: var(--mcf-accent); text-decoration: underline; text-underline-offset: 2px; }

.mcf-recaptcha { min-height: 78px; }

.mcf-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.mcf-submit {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 600; color: #fff; background: var(--mcf-accent);
  border: 0; border-radius: var(--mcf-radius); padding: 13px 28px; cursor: pointer; line-height: 1.2;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--mcf-accent) 28%, transparent);
  transition: filter .15s, transform .1s;
}
.mcf-submit:hover { filter: brightness(.92); transform: translateY(-1px); }
.mcf-submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--mcf-accent) 40%, transparent); outline-offset: 2px; }
.mcf-submit:disabled { cursor: wait; transform: none; filter: none; opacity: .85; }
.mcf-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: mcf-spin .7s linear infinite; }
.mcf-form.is-sending .mcf-spinner { display: inline-block; }
@keyframes mcf-spin { to { transform: rotate(360deg); } }

.mcf-legal { font-size: 12px; color: var(--mcf-mid); margin: 14px 0 0; }
.mcf-legal a { color: inherit; text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; } /* v3: replaced by the notice under the button, as Google allows */

/* Errors and status */
.mcf-field.is-invalid input, .mcf-field.is-invalid select, .mcf-field.is-invalid textarea { border-color: #D64545; background-color: #FFF8F8; }
.mcf-field.is-invalid.mcf-check label { color: #B42318; }
.mcf-error { display: block; font-size: 12px; font-weight: 500; color: #B42318; margin-top: 6px; }
.mcf-status { margin: 18px 0 0; padding: 13px 16px; border-radius: var(--mcf-radius); font-size: 14px; line-height: 1.5; border: 1px solid; }
.mcf-status.is-error { background: #FDF3E1; border-color: #F2C78A; color: #7A4A07; }
.mcf-status.is-success { background: #EAF3DE; border-color: #B7D99A; color: #2F5A0C; }

/* Success panel */
.mcf-done { text-align: center; padding: 28px 12px; animation: mcf-in .3s ease; }
.mcf-done-icon { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: #EAF3DE; position: relative; margin-bottom: 14px; }
.mcf-done-icon::after { content: ''; position: absolute; left: 20px; top: 15px; width: 12px; height: 22px; border: solid #3B6D11; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.mcf-done p { font-size: 17px; font-weight: 500; color: var(--mcf-ink); margin: 0 auto 16px; max-width: 420px; }
.mcf-again { font: inherit; font-size: 14px; font-weight: 600; color: var(--mcf-accent); background: none; border: 1px solid var(--mcf-line); border-radius: 8px; padding: 8px 16px; cursor: pointer; }
.mcf-again:hover { border-color: var(--mcf-accent); }
@keyframes mcf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Bot trap: hidden from people and screen readers */
.mcf-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Inside theme content areas: neutralise article spacing */
.entry-content .mcf > * + * { margin-top: 0; }

@media (max-width: 600px) {
  .mcf--card { padding: 24px 20px 28px; border-radius: 16px; }
  .mcf-row { grid-template-columns: 1fr; }
  .mcf-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .mcf-spinner, .mcf-done { animation: none; } }
