/* ============================================================
   Contact Us — betpinnacle-contact-us-redesign (1440) / contact-mobile (390)
   ============================================================ */

/* page sections use 20px gutters on mobile (spec: content 350 on 390) */
.pgwrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
@media (min-width: 992px) { .pgwrap { width: min(1200px, 100% - 48px); } }

/* ---------- masthead ---------- */
.contact-masthead { background: var(--paper); overflow: hidden; }
.cm-wrap { position: relative; padding: 48px 0; }
.cm-bgword {
  position: absolute; left: -4px; top: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 100px;
  line-height: 1; color: var(--ink); opacity: 0.05;
  pointer-events: none; user-select: none;
}
.cm-content { position: relative; display: flex; flex-direction: column; gap: 16px; }
.cm-kicker {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--brown);
}
.cm-title {
  font-family: var(--font-display); font-weight: 700; font-size: 44px;
  line-height: 1; letter-spacing: -1px; color: var(--ink);
}
.cm-title .hl-brown { color: var(--brown); }
.cm-text p { font-family: var(--font-ui); font-size: 14px; line-height: 1.4; color: var(--ink); }
.cm-text p + p { margin-top: 20px; }
@media (min-width: 992px) {
  .cm-wrap { padding: 96px 0; }
  .cm-bgword { left: 0; top: 120px; font-size: 220px; line-height: 0.85; letter-spacing: -8px; opacity: 0.06; }
  .cm-content { width: 760px; max-width: 100%; }
  .cm-kicker { font-size: 14px; }
  .cm-title { font-size: 96px; letter-spacing: -2px; }
  .cm-text p { font-family: var(--font-display); font-weight: 400; font-size: 16px; line-height: 1.5; }
  .cm-text p + p { margin-top: 24px; }
}

/* ---------- form section ---------- */
.contact-form-section {
  background: var(--card);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.cf-header { display: flex; flex-direction: column; gap: 12px; }
.cf-kicker {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--brown);
}
.cf-title {
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  line-height: 1.1; letter-spacing: -0.5px; color: var(--ink); text-transform: uppercase;
}
.cf-sub { font-family: var(--font-ui); font-size: 12px; line-height: 1.3; color: var(--muted); }
@media (min-width: 992px) {
  .contact-form-section { padding: 96px 0; }
  .cf-header { gap: 8px; }
  .cf-kicker { font-size: 14px; }
  .cf-title { font-size: 72px; line-height: 1; letter-spacing: -2px; width: 760px; max-width: 100%; }
  .cf-sub {
    font-family: var(--font-display); font-size: 16px; line-height: 1.5;
    color: var(--ink); width: 760px; max-width: 100%;
  }
}

/* form */
.cf-form { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.f-row { display: flex; flex-direction: column; gap: 16px; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-label {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink);
}
.f-input, .f-select {
  width: 100%; height: 48px;
  background: var(--card); border: 1px solid var(--ink); border-radius: 0;
  padding: 0 16px;
  font-family: var(--font-ui); font-size: 14px; line-height: 1.4; color: var(--ink);
}
.f-input::placeholder, .f-textarea::placeholder { color: var(--muted); opacity: 1; }
.f-select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  cursor: pointer;
}
.f-select.is-placeholder { color: var(--muted); }
.f-textarea {
  width: 100%; height: 140px;
  background: var(--card); border: 1px solid var(--ink); border-radius: 0;
  padding: 16px;
  font-family: var(--font-ui); font-size: 14px; line-height: 1.4; color: var(--ink);
  resize: vertical;
}
.f-input:focus-visible, .f-select:focus-visible, .f-textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.f-error { font-family: var(--font-ui); font-weight: 600; font-size: 12px; line-height: 1.3; color: var(--brown); }
.f-field.is-invalid .f-input,
.f-field.is-invalid .f-select,
.f-field.is-invalid .f-textarea {
  border-color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown);
}
.btn-send {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 52px; padding: 14px 24px;
  background: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 1px; color: var(--ink); text-transform: uppercase;
}
@media (min-width: 992px) {
  .cf-form { margin-top: 40px; width: 760px; max-width: 100%; gap: 20px; }
  .f-row { flex-direction: row; }
  .f-row .f-field { flex: 1 1 0; }
  .f-row-enquiry .f-field-enquiry { flex: 0 0 360px; }
  .f-row-enquiry .f-field-subject { flex: 1 1 auto; }
  .f-input::placeholder, .f-textarea::placeholder { color: var(--ink); }
  .f-select.is-placeholder { color: var(--ink); }
  .f-textarea { height: 160px; }
  .btn-send { width: auto; min-width: 200px; padding: 14px 28px; }
}

/* success state */
.form-success {
  margin-top: 32px;
  background: var(--ink);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.fs-kicker {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--accent);
}
.fs-title {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  line-height: 1.1; color: #ffffff;
}
.fs-text { font-family: var(--font-ui); font-size: 13px; line-height: 1.4; color: var(--slate); }
.fs-again { font-family: var(--font-ui); font-weight: 800; font-size: 13px; color: var(--accent); }
@media (min-width: 992px) {
  .form-success { margin-top: 40px; width: 760px; max-width: 100%; padding: 32px; }
  .fs-kicker { font-size: 14px; }
  .fs-title { font-size: 44px; letter-spacing: -1px; }
  .fs-text { font-size: 14px; line-height: 1.5; }
}

/* ---------- responsible wagering ---------- */
.rw-section { background: var(--card); padding: 48px 0; }
.rw-title {
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  line-height: 1.1; letter-spacing: -0.5px; color: var(--ink); text-transform: uppercase;
}
.rw-lede { margin-top: 24px; font-family: var(--font-ui); font-size: 14px; line-height: 1.4; color: var(--muted); }
.rw-rule { height: 1px; background: var(--line); margin-top: 40px; }
.rw-tools { margin-top: 24px; }
.rw-tool { border-top: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.rw-tool:last-child { border-bottom: 1px solid var(--line); }
.rt-num { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--muted); }
.rt-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--ink); }
.rt-text { font-family: var(--font-ui); font-size: 12px; line-height: 1.3; color: var(--muted); }
.rt-link { font-family: var(--font-ui); font-weight: 800; font-size: 13px; color: var(--ink); }
@media (min-width: 992px) {
  .rw-section { padding: 96px 0; }
  .rw-title { font-size: 72px; line-height: 1; letter-spacing: -2px; }
  .rw-lede { margin-top: 40px; font-size: 16px; line-height: 1.5; color: var(--ink); max-width: 760px; }
  .rw-tools { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
  .rw-tool { border-top: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; gap: 12px; }
  .rw-tool:last-child { border-bottom: 0; padding-bottom: 0; }
  .rt-num { font-size: 14px; letter-spacing: 1px; color: var(--ink); text-transform: uppercase; }
  .rt-title { font-size: 24px; line-height: 1; }
  .rt-text { font-size: 14px; line-height: 1.5; color: var(--ink); }
}

/* ---------- loss warning ---------- */
.loss-warning { background: var(--accent); padding: 48px 0; }
.lw-wrap { display: flex; flex-direction: column; gap: 24px; }
.lw-kicker { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.lw-title {
  font-family: var(--font-display); font-weight: 700; font-size: 36px;
  line-height: 1.05; color: var(--ink); margin-top: 12px; text-transform: uppercase;
}
.lw-line1 { font-family: var(--font-ui); font-size: 14px; line-height: 1.4; color: var(--ink); margin-top: 12px; }
.lw-line2 { font-family: var(--font-ui); font-weight: 700; font-size: 14px; line-height: 1.4; color: var(--ink); margin-top: 12px; }
.betstop-module {
  background: var(--ink); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.bm-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: #ffffff; }
.bm-text { font-family: var(--font-ui); font-size: 12px; line-height: 1.4; color: #ffffff; opacity: 0.9; }
.bm-link { font-family: var(--font-ui); font-weight: 800; font-size: 13px; color: var(--accent); }
@media (min-width: 992px) {
  .loss-warning { padding: 96px 0; }
  .lw-wrap { flex-direction: row; gap: 24px; }
  .lw-left { flex: 1; }
  .lw-title { font-size: 64px; margin-top: 16px; }
  .lw-line1 { font-size: 14px; line-height: 1; margin-top: 16px; }
  .lw-line2 { font-size: 14px; margin-top: 16px; }
  .betstop-module { width: 360px; flex: none; border-radius: 24px; padding: 24px; gap: 12px; }
  .bm-title { font-size: 44px; letter-spacing: -1px; }
  .bm-text { font-size: 14px; line-height: 1.2; opacity: 1; }
  .bm-link { font-size: 13px; color: #ffffff; }
}

/* --- interaction polish --- */
.btn-send:hover { background: #eaba0b; }
.btn-send:active { transform: translateY(1px); }
@media (prefers-reduced-motion: no-preference) {
  .btn-send { transition: background-color 0.15s cubic-bezier(0.2, 0, 0, 1), transform 0.12s cubic-bezier(0.2, 0, 0, 1); }
}
