/* ================================================
   NorthPoint Contact Form — contact-form.css
   Brand: #0d1a3a (navy) | #1A6FE8 (blue)
   Font: Barlow / Barlow Condensed
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Barlow:wght@400;500;600;700&display=swap');

/* ── Wrapper: two-column grid ── */
.nptc-cf-wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  width: 100%;
  font-family: 'Barlow', sans-serif;
  color: #0d1a3a;
  background: #ffffff;
}

/* ══════════════
   LEFT COLUMN
══════════════ */
.nptc-cf-form-col {
  padding: 56px 52px;
  background: #ffffff;
}

/* Header */
.nptc-cf-eyebrow {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1A6FE8;
  margin-bottom: 8px;
}

.nptc-cf-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 40px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #0d1a3a;
  line-height: 1.05;
  margin: 0 0 12px;
}

.nptc-cf-title span {
  color: #1A6FE8;
}

.nptc-cf-subtitle {
  font-size: 15px;
  color: #5a6880;
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 480px;
}

/* Grid rows */
.nptc-cf-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.nptc-cf-row:last-of-type { margin-bottom: 0; }

.nptc-cf-cols-2 { grid-template-columns: 1fr 1fr; }
.nptc-cf-cols-1 { grid-template-columns: 1fr; }

/* Field */
.nptc-cf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Inputs / Select / Textarea */
.nptc-cf-input,
.nptc-cf-select,
.nptc-cf-textarea {
  width: 100%;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #0d1a3a;
  background: #ffffff;
  border: 1.5px solid #d1d9e8;
  border-radius: 3px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.nptc-cf-input::placeholder,
.nptc-cf-textarea::placeholder {
  color: #a0aec0;
}

.nptc-cf-input:focus,
.nptc-cf-select:focus,
.nptc-cf-textarea:focus {
  border-color: #1A6FE8;
  box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.10);
}

.nptc-cf-input.error,
.nptc-cf-select.error,
.nptc-cf-textarea.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.10);
}

.nptc-cf-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231A3A8F' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
  cursor: pointer;
  color: #0d1a3a;
}

.nptc-cf-select option { color: #0d1a3a; }

/* When select shows placeholder */
.nptc-cf-select:invalid,
.nptc-cf-select option[value=""] {
  color: #a0aec0;
}

.nptc-cf-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Error messages */
.nptc-cf-err {
  font-size: 12px;
  color: #e53e3e;
  display: none;
}

.nptc-cf-err.visible { display: block; }

/* Submit row */
.nptc-cf-submit-row {
  margin-top: 24px;
}

.nptc-cf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1A6FE8;
  color: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 40px;
  border: 2px solid #1A6FE8;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nptc-cf-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.nptc-cf-btn:hover {
  background: #1259c4;
  border-color: #1259c4;
  transform: translateY(-1px);
}

.nptc-cf-btn:active { transform: translateY(0); }

.nptc-cf-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Success banner */
.nptc-cf-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  background: #f0faf4;
  border: 1.5px solid #38a169;
  border-left: 5px solid #38a169;
  border-radius: 4px;
  padding: 20px 24px;
  margin-top: 20px;
}

.nptc-cf-success.visible { display: flex; }

.nptc-cf-success svg {
  width: 22px;
  height: 22px;
  color: #38a169;
  flex-shrink: 0;
  margin-top: 2px;
}

.nptc-cf-success strong {
  font-size: 15px;
  font-weight: 700;
  color: #276749;
  display: block;
  margin-bottom: 4px;
}

.nptc-cf-success p {
  font-size: 14px;
  color: #276749;
  margin: 0;
  line-height: 1.55;
}

/* ══════════════
   RIGHT COLUMN
══════════════ */
.nptc-cf-info-col {
  background: #0d1a3a;
  padding: 52px 40px;
  color: #ffffff;
}

.nptc-cf-info-eyebrow {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1A6FE8;
  margin-bottom: 28px;
}

/* Location block */
.nptc-cf-location-block {
  margin-bottom: 28px;
}

.nptc-cf-location-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 16px;
}

.nptc-cf-location-title svg {
  width: 16px;
  height: 16px;
  color: #1A6FE8;
  flex-shrink: 0;
}

/* Contact list */
.nptc-cf-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nptc-cf-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.80);
  line-height: 1.5;
}

.nptc-cf-contact-list a {
  color: rgba(255,255,255,0.90);
  text-decoration: none;
  transition: color 0.2s;
}

.nptc-cf-contact-list a:hover {
  color: #1A6FE8;
  text-decoration: underline;
}

/* Icons */
.nptc-cf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

.nptc-cf-icon svg {
  width: 16px;
  height: 16px;
}

.nptc-cf-icon-phone  { background: rgba(26,111,232,0.20); color: #1A6FE8; }
.nptc-cf-icon-email  { background: rgba(26,111,232,0.20); color: #1A6FE8; }
.nptc-cf-icon-addr   { background: rgba(26,111,232,0.20); color: #1A6FE8; }
.nptc-cf-icon-hours  { background: rgba(26,111,232,0.20); color: #1A6FE8; }
.nptc-cf-icon-roadside { background: rgba(26,111,232,0.25); color: #1A6FE8; }

/* Divider */
.nptc-cf-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 20px 0 24px;
}

/* 24/7 roadside */
.nptc-cf-roadside {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 4px;
}

.nptc-cf-roadside strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
}

.nptc-cf-roadside p {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  margin: 0;
  line-height: 1.5;
}

.nptc-cf-roadside a {
  color: #1A6FE8;
  text-decoration: none;
}

.nptc-cf-roadside a:hover { text-decoration: underline; }

/* ══════════════
   RESPONSIVE
══════════════ */
@media (max-width: 1024px) {
  .nptc-cf-wrap {
    grid-template-columns: 1fr 360px;
  }
  .nptc-cf-form-col { padding: 44px 36px; }
  .nptc-cf-info-col { padding: 44px 28px; }
}

@media (max-width: 820px) {
  .nptc-cf-wrap {
    grid-template-columns: 1fr;
  }
  .nptc-cf-info-col {
    padding: 40px 32px;
  }
}

@media (max-width: 600px) {
  .nptc-cf-form-col { padding: 32px 20px; }
  .nptc-cf-info-col { padding: 32px 20px; }
  .nptc-cf-cols-2   { grid-template-columns: 1fr; }
  .nptc-cf-btn      { width: 100%; justify-content: center; }
}
