/* ============================================================
   Allingo — Contact page styles
   ============================================================ */

/* ---------- hero ---------- */
.contact-hero { padding: 76px 0 0; position: relative; overflow: hidden; }
.contact-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 50% at 85% 0%, rgba(37,99,235,.10), transparent 70%),
    radial-gradient(38% 40% at 6% 4%, rgba(91,139,255,.07), transparent 70%);
}
.contact-hero .container { position: relative; z-index: 1; }
.contact-hero h1 { max-width: 16ch; margin-bottom: 20px; }
.contact-hero .lead { max-width: 600px; }

/* quick channel cards under the hero copy */
.contact-channels { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.channel-card {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 20px 14px 16px; box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.channel-card:hover { border-color: var(--accent-soft-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.channel-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.channel-card .ic svg { width: 21px; height: 21px; }
.channel-card .lbl { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mut); margin-bottom: 2px; }
.channel-card .val { font-size: 16px; font-weight: 650; color: var(--text); letter-spacing: -.01em; }

/* ---------- main grid: form + sidebar ---------- */
.contact-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: start; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 34px; }
.form-card h3 { margin-bottom: 6px; }
.form-card .form-sub { color: var(--text-mut); font-size: 15px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-sec); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 14px; height: 46px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field textarea { padding: 12px 14px; height: auto; min-height: 124px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236b7384' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--text-mut); }
.form-success { display: none; align-items: center; gap: 9px; color: var(--pos); font-weight: 600; font-size: 15px; }
.form-success svg { width: 19px; height: 19px; }
.form-card.sent .form-grid, .form-card.sent .form-actions .btn, .form-card.sent .form-note { display: none; }
.form-card.sent .form-success { display: flex; }

/* ---------- sidebar ---------- */
.side-block + .side-block { margin-top: 32px; }
.side-block > h4 { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mut); margin-bottom: 14px; }

.office { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.office + .office { margin-top: 12px; }
.office .ocity { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; margin-bottom: 7px; color: var(--text); }
.office .ocity .pin { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.office .ocity .pin svg { width: 15px; height: 15px; }
.office .oaddr { font-size: 14px; color: var(--text-sec); line-height: 1.5; }
.office .omap { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; font-size: 13.5px; color: var(--accent); font-weight: 600; }
.office .omap svg { width: 14px; height: 14px; transition: transform .18s ease; }
.office .omap:hover svg { transform: translateX(3px); }

.region-row { display: flex; flex-wrap: wrap; gap: 10px; }
.region-pill { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--text-sec); background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 9px 17px; }
.region-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); flex: none; }

.social-row { display: flex; gap: 10px; }
.social-row a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text-sec); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.social-row a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.social-row svg { width: 18px; height: 18px; }

/* ---------- audience segments ---------- */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.segment { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.segment:hover { border-color: var(--accent-soft-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.segment .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.segment .ic svg { width: 23px; height: 23px; }
.segment h3 { font-size: 18px; margin-bottom: 9px; }
.segment p { font-size: 14.5px; color: var(--text-mut); line-height: 1.55; margin-bottom: 16px; }

/* ---------- legal entity ---------- */
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.legal-item { background: var(--surface); padding: 20px 22px; }
.legal-item .k { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mut); margin-bottom: 7px; }
.legal-item .v { font-size: 15px; color: var(--text); font-weight: 550; line-height: 1.45; }
.legal-item .v a { color: var(--accent); font-weight: 600; word-break: break-word; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .segments { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .contact-hero { padding-top: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .legal-grid { grid-template-columns: 1fr; }
  .contact-channels { gap: 10px; }
  .channel-card { width: 100%; }
}
