/* 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 { }
.cv-right h2 { font-size:18px; margin-top:0; margin-bottom:8px; }
.cv-right-intro { color:var(--muted); margin-bottom:16px; font-size:14px; }
.cv-offices { background: var(--bg); border:1px solid var(--border); padding:18px; border-radius:10px; box-shadow: 0 6px 18px rgba(10,20,30,0.03); }
.cv-office { margin-bottom:18px; }
.cv-office h3 { margin:0 0 6px; font-size:15px; }
.cv-office address { font-style: normal; color:#333; white-space:pre-wrap; line-height:1.35; font-size:14px; }
.cv-tel { margin-top:8px; font-weight:600; }

/* 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);
}
