/* contact-vitol.css - two-column contact layout + Vitol-like styling */

/* Variables */
:root{
  --accent-1: #0a6e57;
  --accent-2: #078764;
  --muted: #6b7280;
  --border: #ececec;
  --bg: #ffffff;
  --error: #b00020;
  --radius: 8px;
  --max-width: 1200px;
}

/* Reset & base */
* { box-sizing: border-box; }
a:hover { text-decoration: underline; }

/* Container */
.cv-container { max-width: var(--max-width); margin: 36px auto; padding: 0 20px; }

/* Two-column grid */
.cv-grid-two {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 980px) {
  .cv-grid-two { grid-template-columns: 1fr; }
}

/* Left column (form) */
.cv-left { }
.cv-title { font-size: 34px; line-height: 1.05; margin: 0 0 10px; font-weight: 600; }
.cv-intro, .cv-subinfo { color: var(--muted); margin-bottom: 14px; font-size: 15px; }

/* Form wrapper */
.cv-form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 8px 28px rgba(10,20,30,0.04);
}

/* ===========================
   TEXT BUTTON SELECTOR (was pills)
   =========================== */
.cv-pills {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.cv-pill {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  color: #444;
  background: none;
  padding: 0;
  border: none;
  user-select: none;
  transition: color .15s ease, transform .08s ease;
}

/* Hide the radio input visually */
.cv-pill input {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Active / checked state: colored + underlined */
.cv-pill:has(input:checked) {
  color: var(--accent-1);
  text-decoration: underline;
  transform: translateY(-1px);
}

/* Hover */
.cv-pill:hover {
  color: var(--accent-2);
}

/* Form rows */
.cv-row { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.cv-row label { font-size:14px; color:#1f2937; }
.cv-row input[type="text"], .cv-row input[type="email"], .cv-row textarea {
  padding:12px 14px;
  border:1px solid #ddd;
  border-radius:8px;
  font-size:15px;
  background:#fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.cv-row input:focus, .cv-row textarea:focus {
  outline:none;
  border-color: var(--accent-1);
  box-shadow: 0 6px 20px rgba(10,110,90,0.08);
}
.cv-row textarea { min-height:150px; resize:vertical; }

/* Checkbox/Privacy */
.cv-checkbox label { display:flex; gap:10px; align-items:flex-start; font-size:14px; line-height:1.3; }
.cv-checkbox input { width:18px; height:18px; margin-top:4px; }

/* Field errors */
.cv-field-error { color: var(--error); font-size:13px; margin-top:6px; }

/* Honeypot hidden */
.hp-visually-hidden { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Actions */
.cv-actions { margin-top:10px; display:flex; gap:12px; align-items:center; }
.cv-btn, .cv-actions .btn {
  background: black;
  color:#fff;
  border:none;
  padding:12px 18px;
  font-weight:700;
  cursor:pointer;
  font-size:15px;
}
.cv-btn:hover { transform: translateY(-1px); }

/* Right column (offices) */
.cv-right {
  display: grid;
  gap: 1rem;
}

.cv-right h2 {
  margin: 0;
  color: var(--color-text, #151311);
  font-size: 1.45rem;
  font-weight: 740;
  line-height: 1.12;
}

.cv-right-intro {
  color: var(--color-text-grey, var(--muted));
  margin-bottom: .25rem;
  font-size: .96rem;
  line-height: 1.6;
}

.cv-office-map-panel {
  overflow: hidden;
  border: 1px solid var(--color-border, var(--border));
  border-radius: var(--radius);
  background: var(--color-surface, var(--bg));
  box-shadow: var(--shadow-small, 0 6px 18px rgba(10,20,30,0.03));
}

.cv-office-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .75rem;
  border-bottom: 1px solid var(--color-border, var(--border));
}

.cv-office-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: .58rem .7rem;
  border: 1px solid var(--color-border, var(--border));
  border-radius: var(--radius);
  background: rgba(246, 248, 246, .82);
  color: var(--color-text, #151311);
  font-size: .82rem;
  font-weight: 760;
  line-height: 1;
}

.cv-office-tab:hover,
.cv-office-tab.is-active {
  border-color: rgba(15, 118, 110, .34);
  background: rgba(15, 118, 110, .1);
  color: var(--color-accent, var(--accent-1));
  text-decoration: none;
}

.cv-office-map-panel iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 260px;
  border: 0;
  background: #dfe7e3;
}

.cv-office-map-panel > a {
  display: inline-flex;
  margin: .85rem 1rem 1rem;
  color: var(--color-accent, var(--accent-1));
  font-size: .9rem;
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, .32);
  text-underline-offset: .18em;
}

.cv-office {
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border, var(--border));
  border-radius: var(--radius);
  background: var(--color-surface, var(--bg));
  box-shadow: var(--shadow-small, 0 6px 18px rgba(10,20,30,0.03));
}

.cv-office h3 {
  margin: 0 0 .55rem;
  padding: 1rem 1rem 0;
  color: var(--color-text, #151311);
  font-size: 1.05rem;
  font-weight: 740;
  line-height: 1.18;
}

.cv-office address {
  padding: 0 1rem;
  font-style: normal;
  color: var(--color-text-grey, #333);
  line-height: 1.45;
  font-size: .96rem;
}

.cv-tel,
.cv-email,
.cv-map {
  margin: .65rem 1rem 0;
  color: var(--color-text, #151311);
  font-size: .92rem;
  font-weight: 640;
}

.cv-map {
  margin-bottom: 1rem;
}

.cv-tel a,
.cv-email a,
.cv-map a {
  color: var(--color-accent, var(--accent-1));
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, .32);
  text-underline-offset: .18em;
}

/* Alerts */
.cv-alert { padding:12px 14px; border-radius:8px; margin-bottom:12px; font-size:15px; }
.cv-success { background:#e6f7ee; color:#05492b; border:1px solid rgba(5,73,43,0.06); }
.cv-error { background:#fdecea; color:#611; border:1px solid rgba(102,0,0,0.06); }

/* Responsive tweaks */
@media (max-width: 520px) {
  .cv-title { font-size:26px; }
  .cv-form-wrap { padding:18px; }
  .cv-pills { gap:12px; }
  .cv-right { margin-top:18px; }
}

/* Accessibility: show invalid */
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 4px 18px rgba(176,0,32,0.08);
}
