/* ==========================================================================
   TEAM ONE BAIL BONDS — contact.css
   "Midnight Calm" — contact page styles
   Depends on main.css for design tokens.
   All classes prefixed with .ct-
   ========================================================================== */

/* ===== CONTACT LAYOUT: two-column grid ===== */

.ct-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 1023px) {
  .ct-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== CONTACT INFO COLUMN ===== */

.ct-info-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  color: var(--slate-900);
  margin-bottom: var(--space-8);
}

/* List */
.ct-info-list {
  list-style: none;
  margin-bottom: var(--space-8);
}

.ct-info-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--slate-200);
}

.ct-info-item:last-child {
  border-bottom: none;
}

/* Icon circle */
.ct-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--amber-100);
  color: var(--amber-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Label + value */
.ct-info-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  margin-bottom: var(--space-1);
}

.ct-info-value {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--slate-700);
  line-height: 1.55;
}

.ct-info-value a {
  color: var(--slate-900);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.ct-info-value a:hover {
  color: var(--amber-500);
  text-decoration: none;
}

.ct-info-address {
  font-style: normal;
}

/* ===== AVAILABILITY BADGE (override default hidden-on-mobile for this context) ===== */

.ct-availability-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
  margin-bottom: var(--space-6);
}

/* ===== CLIENT PORTAL BOX ===== */

.ct-portal-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--amber-500);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.ct-portal-box__title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-900);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.ct-portal-box__body {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

/* ===== TESTIMONIAL VIDEO (inline in info col) ===== */

.ct-inline-video {
  margin-top: var(--space-6);
}

.ct-inline-video__heading {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--slate-900);
  margin-bottom: var(--space-4);
}

/* ===== CONTACT FORM CARD ===== */

.ct-form-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-md);
}

@media (max-width: 479px) {
  .ct-form-card {
    padding: var(--space-6) var(--space-5);
  }
}

.ct-form-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--slate-900);
  margin-bottom: var(--space-2);
}

.ct-form-intro {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

/* ===== FORM FIELDS ===== */

.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 479px) {
  .ct-form-row {
    grid-template-columns: 1fr;
  }
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-5);
}

.ct-field label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  line-height: 1.3;
}

.ct-field .ct-required {
  color: var(--rose-500);
  margin-left: 2px;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--slate-800);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: var(--slate-400);
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--amber-400);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.ct-field input:focus-visible,
.ct-field select:focus-visible,
.ct-field textarea:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 1px;
}

/* Validation error state */
.ct-field.ct-field--error input,
.ct-field.ct-field--error select,
.ct-field.ct-field--error textarea {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.ct-error-msg {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--rose-500);
  font-weight: 500;
  margin-top: 2px;
  display: none;
}

.ct-field.ct-field--error .ct-error-msg {
  display: block;
}

/* Textarea */
.ct-field textarea {
  resize: vertical;
  min-height: 130px;
  padding: 12px 14px;
  line-height: 1.6;
}

/* Select custom arrow */
.ct-field 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='%2394A3B8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ===== HONEYPOT ===== */

.ct-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ===== FORM NOTE ===== */

.ct-form-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.ct-form-note .ct-req-star {
  color: var(--rose-500);
}

/* ===== SUBMIT BUTTON (full-width variant) ===== */

.ct-submit-btn {
  width: 100%;
}

/* ===== MAP SECTION ===== */

.ct-map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0; /* collapse whitespace under iframe */
}

.ct-map-wrapper iframe {
  display: block;
  width: 100%;
  border: 0;
}

.ct-map-caption {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--slate-500);
  text-align: center;
  margin-top: var(--space-4);
  line-height: 1.5;
}

.ct-map-caption a {
  color: var(--amber-700, #b45309);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.ct-map-caption a:hover {
  color: var(--amber-600, #d97706);
  text-decoration: none;
}

/* ===== TESTIMONIALS VIDEO GRID ===== */

.ct-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  max-width: 840px;
  margin-inline: auto;
}

/* ===== MOBILE: prevent iOS zoom on focus (font-size must be >= 16px on inputs) ===== */

@media (max-width: 767px) {
  .ct-field input,
  .ct-field select,
  .ct-field textarea {
    font-size: 1rem;
  }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  .ct-field input,
  .ct-field select,
  .ct-field textarea {
    transition: none;
  }

  .ct-info-value a {
    transition: none;
  }

  .pulse-dot::after {
    animation: none;
  }
}
