/* ==========================================================================
   Contact page — contact.css
   ========================================================================== */

/* ── Page header ─────────────────────────────────────────────────── */
.co-page-header {
  background: linear-gradient(135deg, var(--navy-60) 0%, var(--navy-50) 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.co-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 80% at 85% 50%, rgba(176,32,40,.15) 0%, transparent 65%);
  pointer-events: none;
}
.co-page-header .breadcrumb { margin-bottom: 28px; }
.co-page-header .breadcrumb a,
.co-page-header .breadcrumb span,
.co-page-header .breadcrumb i { color: rgba(255,255,255,.55); }
.co-page-header h1 {
  font: 700 clamp(2rem, 4.5vw, 3rem)/1.1 var(--font-sans);
  color: var(--white);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.co-hero-sub {
  font: 400 17px/1.7 var(--font-sans);
  color: rgba(255,255,255,.72);
  max-width: 580px;
  margin: 0;
}

/* ── Office cards strip ──────────────────────────────────────────── */
.co-offices-section {
  background: #F9FAFB;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-minimal);
}
.co-offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.co-office-card {
  background: var(--white);
  border: 1.5px solid var(--border-minimal);
  border-radius: 18px;
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow .25s, border-color .25s;
}
.co-office-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  border-color: var(--red-20);
}
.co-office-card--hq {
  border-top: 3px solid var(--red-50);
}
.co-office-flag {
  margin-bottom: 14px;
  line-height: 1;
}
.co-office-flag img {
  display: block;
  width: 48px;
  height: 36px;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  object-fit: cover;
}
.co-office-card h3 {
  font: 700 18px/1.2 var(--font-sans);
  color: var(--fg-primary);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.co-office-hq-badge {
  display: inline-flex;
  align-items: center;
  font: 700 10px/1 var(--font-sans);
  color: var(--red-50);
  background: var(--red-10);
  border: 1px solid var(--red-20);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  align-self: flex-start;
}
.co-office-address {
  font: 400 14px/1.65 var(--font-sans);
  color: var(--fg-secondary);
  margin: 0 0 18px;
}
.co-office-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border-minimal);
}
.co-office-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 14px/1 var(--font-sans);
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color .2s;
}
.co-office-contacts a i { color: var(--red-50); font-size: 15px; flex-shrink: 0; }
.co-office-contacts a:hover { color: var(--red-50); }

/* ── Main section: form + quick contacts ─────────────────────────── */
.co-main-section {
  padding: 80px 0 96px;
  background: var(--white);
}
.co-main-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: start;
}

/* ── Contact form card ───────────────────────────────────────────── */
.co-form-card {
  background: var(--white);
  border: 1.5px solid var(--border-minimal);
  border-radius: 20px;
  padding: 44px 44px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
}
.co-form-card h2 {
  font: 700 clamp(1.375rem, 2.5vw, 1.75rem)/1.2 var(--font-sans);
  color: var(--fg-primary);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.co-form-card .co-form-subtitle {
  font: 400 15px/1.5 var(--font-sans);
  color: var(--fg-secondary);
  margin: 0 0 32px;
}

/* Form fields */
.co-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.co-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.co-field label {
  font: 600 13px/1 var(--font-sans);
  color: var(--fg-primary);
  letter-spacing: 0.01em;
}
.co-field label .req { color: var(--red-50); margin-left: 2px; }
.co-field input,
.co-field select,
.co-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-minimal);
  border-radius: 10px;
  font: 400 15px/1.4 var(--font-sans);
  color: var(--fg-primary);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.co-field input::placeholder,
.co-field textarea::placeholder { color: var(--fg-disabled); }
.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus {
  border-color: var(--red-50);
  box-shadow: 0 0 0 3px rgba(176,32,40,.08);
}
.co-field select {
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.co-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.co-form-submit {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
#co-form-msg {
  font: 400 14px/1.4 var(--font-sans);
  color: var(--fg-secondary);
}
#co-form-msg.success { color: #16a34a; }
#co-form-msg.error   { color: var(--red-50); }

/* ── CF7 overrides ───────────────────────────────────────────────── */
.co-form-card .wpcf7 { display: block; }
.co-form-card .wpcf7-spinner { display: none; }
.co-form-card .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .9375rem;
  border: none;
}
.co-form-card .wpcf7-mail-sent-ok    { background: #f0fdf4; color: #16a34a; }
.co-form-card .wpcf7-mail-sent-ng,
.co-form-card .wpcf7-aborted,
.co-form-card .wpcf7-spam-blocked    { background: #fff5f5; color: var(--red-50); }
.co-form-card .wpcf7-validation-errors { background: #fff7ed; color: #c2410c; }
.co-form-card .wpcf7-not-valid-tip {
  display: block;
  font-size: .8125rem;
  color: var(--red-50);
  margin-top: 4px;
}
.co-form-card .wpcf7-not-valid input,
.co-form-card .wpcf7-not-valid select,
.co-form-card .wpcf7-not-valid textarea {
  border-color: var(--red-50);
  box-shadow: 0 0 0 3px rgba(176,32,40,.08);
}

/* ── Info sidebar ────────────────────────────────────────────────── */
.co-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-h, 72px) + 24px);
}
.co-info-card {
  background: #F9FAFB;
  border: 1.5px solid var(--border-minimal);
  border-radius: 16px;
  padding: 28px;
}
.co-info-card h3 {
  font: 700 14px/1 var(--font-sans);
  color: var(--fg-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.co-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-minimal);
}
.co-contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.co-contact-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--red-10);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--red-50);
  flex-shrink: 0;
}
.co-contact-label {
  font: 400 12px/1 var(--font-sans);
  color: var(--fg-tertiary);
  margin-bottom: 5px;
  display: block;
}
.co-contact-value {
  font: 600 14px/1.3 var(--font-sans);
  color: var(--fg-primary);
  text-decoration: none;
  transition: color .2s;
  display: block;
}
a.co-contact-value:hover { color: var(--red-50); }


/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .co-main-inner { grid-template-columns: 1fr 360px; gap: 40px; }
}
@media (max-width: 900px) {
  .co-main-inner { grid-template-columns: 1fr; }
  .co-info-col   { position: static; }
}
@media (max-width: 680px) {
  .co-offices-grid { grid-template-columns: 1fr; }
  .co-form-row     { grid-template-columns: 1fr; }
  .co-form-card    { padding: 28px 24px; }
  .co-offices-section { padding: 40px 0; }
  .co-main-section { padding: 52px 0 64px; }
}
@media (max-width: 480px) {
  .co-page-header { padding: 48px 0 40px; }
}
