/* =========================================================
   Best Finance Calculator — Contact page styles
   Loaded AFTER css/style.css and css/calculator.css; it only adds
   the pieces unique to this page and changes nothing shared.
   ========================================================= */

/* ---------- Contact form ---------- */
.contact-form .field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 620px) {
  .contact-form .field-grid { grid-template-columns: 1fr; gap: 0; }
}

/* Plain bordered inputs (no $ / % affix like the calculator has) */
.text-input,
.textarea-input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 7px;
  background: #fff;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.text-input::placeholder,
.textarea-input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}
.text-input:focus,
.textarea-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.1);
}
.textarea-input {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
}

/* Required marker */
.req { color: #d64545; margin-left: 2px; }

/* Inline validation message */
.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 11.5px;
  color: #c23c3c;
}
.field-error i { font-size: 11px; }
.field.invalid .field-error { display: flex; }
.field.invalid .text-input,
.field.invalid .textarea-input,
.field.invalid .select-wrap {
  border-color: #e39191;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.08);
}

/* Character counter under the message box */
.char-count {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 5px;
  text-align: right;
}

/* Privacy note beside the submit button */
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--gray-500);
  line-height: 1.55;
}
.form-privacy i { color: var(--blue); font-size: 12px; margin-top: 1px; flex-shrink: 0; }

/* Success panel shown after a valid submit */
.form-success {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: #eefaf3;
  border: 1px solid #cfeadd;
  border-radius: 9px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.form-success.show { display: flex; }
.form-success .fs-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lime);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.form-success strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #18653f;
  margin-bottom: 3px;
}
.form-success p { font-size: 12px; color: #2f6b4d; line-height: 1.55; }

/* ---------- Contact method cards ---------- */
.contact-methods {
  display: grid;
  /* minmax(0,…) not plain 1fr: the long email addresses are a single
     unbreakable token, and a bare 1fr lets that min-content width push
     one column wider than the others. This keeps the three cards equal. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
@media (max-width: 760px) { .contact-methods { grid-template-columns: 1fr; } }

.method-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 9px;
  padding: 16px 14px;
  text-align: center;
}
.method-card .m-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin: 0 auto 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
}
.m-blue  { background: var(--blue); }
.m-green { background: var(--lime); }
.m-purple{ background: var(--purple); }
.method-card h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
}
.method-card p { font-size: 11.5px; color: var(--gray-500); line-height: 1.55; }
.method-card a {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  /* The addresses are long enough to need two lines in a 250px card.
     `break-word` used to split them mid-domain (".co" / "m"); `normal`
     keeps whole chunks together and lets the <wbr> after the "@" choose
     the break point. `overflow-wrap` stays as the last-resort fallback. */
  word-break: normal;
  overflow-wrap: break-word;
}
.method-card a:hover { text-decoration: underline; }

/* ---------- Response-time strip ---------- */
.response-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #eaf4fd;
  border: 1px solid #d3e7f7;
  border-radius: 9px;
  padding: 14px 16px;
}
.response-strip .rs-ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.response-strip h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.response-strip p { font-size: 11.5px; color: var(--gray-600); line-height: 1.55; }
@media (max-width: 620px) {
  .response-strip { flex-direction: column; text-align: center; }
}

/* ---------- Mobile centring (matches the rest of the site) ---------- */
@media (max-width: 760px) {
  .method-card { text-align: center; }
  .form-success { text-align: left; }
}
