/* ── MAIN LAYOUT ── */
.contact-wrap { background: var(--bg); padding: 64px 40px 88px; }
.contact-layout {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 360px; gap: 28px;
  align-items: start;
}

/* ── FORM CARD ── */
.form-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 40px;
}
.form-card-title { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 6px; letter-spacing: -.01em; }
.form-card-sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; line-height: 1.6; }

.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--navy);
  letter-spacing: .03em; margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--text);
  background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #b0b8cc; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,110,245,.1);
}
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid {
  border-color: #e53935;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* subject pills */
.subject-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 4px;
}
.subject-pill { position: relative; }
.subject-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.subject-pill label {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all .15s; margin-bottom: 0;
}
.subject-pill input:checked + label {
  border-color: var(--blue); background: #eef3fe; color: var(--blue);
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--border); transition: background .15s;
}
.subject-pill input:checked + label .pill-dot { background: var(--blue); }

.btn-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 32px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: 10px;
  font-size: 13px; font-weight: 700; font-family: inherit;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(26,110,245,.35);
}
.btn-submit:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(26,110,245,.45); }
.btn-submit svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.form-note { font-size: 12px; color: #b0b8cc; margin-top: 16px; line-height: 1.6; }
.form-note a { color: var(--blue); font-weight: 600; }

/* ── SIDEBAR ── */
.contact-sidebar { display: flex; flex-direction: column; gap: 16px; }

.info-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 22px;
  display: flex; gap: 14px; align-items: flex-start;
}
.info-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
  background: #eef3fe; display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 19px; height: 19px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-title { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.info-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.info-desc a { color: var(--blue); font-weight: 600; }
.info-desc a:hover { text-decoration: underline; }

/* dark card */
.dark-card {
  background: var(--navy); border-radius: 16px; padding: 24px;
  position: relative; overflow: hidden;
}
.dark-card::after {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,110,245,.3) 0%, transparent 70%);
}
.dark-card-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 8px; position: relative; }
.dark-card-desc { font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 1.65; margin-bottom: 16px; position: relative; }
.dark-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: #7fb5ff;
  position: relative; transition: color .15s;
}
.dark-card-link:hover { color: #a8cdff; }
.dark-card-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* response time */
.response-card {
  background: linear-gradient(135deg, #eef3fe, #f6f9ff);
  border: 1.5px solid #dbe7fe;
  border-radius: 16px; padding: 22px;
  text-align: center;
}
.response-val { font-size: 28px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; margin-bottom: 4px; }
.response-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* wrap-recaptcha */
.wrap-recaptcha { margin-top: 8px; margin-bottom: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .contact-wrap { padding: 48px 20px 64px; }
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .form-card { padding: 28px 24px; }
  .field-row-2 { grid-template-columns: 1fr; gap: 0; }
  .subject-grid { grid-template-columns: 1fr; }
}
