/* ==========================================================================
   PPCTrace - Contact Page Styles
   (Loads alongside common.css)
   ========================================================================== */

/* ==========================================================================
   Hero
   ========================================================================== */
.contact-hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--bluelt) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.contact-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 14px;
}
.contact-hero h1 span { color: var(--blue); }
.contact-hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   Contact Options Grid (3 cards)
   ========================================================================== */
.contact-options { padding: 56px 0 24px; }

.opt-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.opt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--blue2), var(--blue), transparent);
  opacity: 0;
  transition: opacity .3s;
  border-radius: 18px 18px 0 0;
}
.opt-card:hover {
  border-color: rgba(24, 71, 194, .22);
  box-shadow: 0 12px 32px rgba(24, 71, 194, .08);
  transform: translateY(-3px);
}
.opt-card:hover::before { opacity: 1; }

.opt-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--ba10);
  border: 1px solid var(--ba15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.opt-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.3px;
}
.opt-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.opt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  transition: gap .15s;
}
.opt-link:hover { color: var(--blue); gap: 10px; }

.opt-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted2);
}
.opt-meta-dot { width: 5px; height: 5px; border-radius: 50%; background: #16a34a; }
.opt-meta strong { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Main Section (form + sidebar)
   ========================================================================== */
.contact-main { padding: 48px 0 80px; }

/* Form card */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
.cf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  background: var(--ba06);
  border: 1px solid var(--ba15);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.cf-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.6px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.cf-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 26px;
}

.cf-row { margin-bottom: 14px; }
.cf-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted2);
  margin-bottom: 5px;
}
.cf-input,
.cf-select,
.cf-textarea {
  width: 100%;
  background: var(--bluelt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(24, 71, 194, .08);
}
.cf-input::placeholder,
.cf-textarea::placeholder { color: var(--muted2); }

.cf-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 5 5-5' stroke='%239098b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.cf-textarea {
  height: 130px;
  resize: vertical;
  line-height: 1.55;
  min-height: 100px;
}

/* Topic chips */
.cf-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cf-topic-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cf-topic-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bluelt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  user-select: none;
}
.cf-topic-label:hover {
  background: var(--ba06);
  color: var(--blue);
  border-color: var(--ba15);
}
.cf-topic-radio:checked + .cf-topic-label {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Consent checkbox */
.cf-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 18px;
}
.cf-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}
.cf-consent label {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
}
.cf-consent a { color: var(--blue); font-weight: 600; }
.cf-consent a:hover { text-decoration: underline; }

/* Submit button */
.cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  padding: 13px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.cf-submit:hover {
  background: var(--blue2);
  box-shadow: 0 6px 24px var(--ba25);
  transform: translateY(-1px);
}

.cf-note {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 14px;
}

/* ==========================================================================
   Sidebar (Info + FAQ)
   ========================================================================== */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-card {
  background: var(--bluelt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.aside-card.dark {
  background: var(--blue);
  border: none;
  position: relative;
  overflow: hidden;
}
.aside-card.dark::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
}

.aside-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 14px;
}
.aside-card.dark .aside-title { color: rgba(255, 255, 255, .55); }

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ba06);
  border: 1px solid var(--ba15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted2);
  margin-bottom: 2px;
}
.info-val { font-size: 13.5px; font-weight: 600; color: var(--text); }
.info-val a { color: var(--blue); }
.info-val a:hover { text-decoration: underline; }

/* Office card (dark variant) */
.office-card-content { position: relative; z-index: 1; }
.office-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 10px;
}
.office-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.3px;
}
.office-addr {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.6;
  margin-bottom: 14px;
}
.office-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}
.office-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.office-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

/* Social row */
.social-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  transition: background .15s;
}
.social-row a:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* Response time stat */
.response-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.response-stat-n {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -1px;
  line-height: 1;
}
.response-stat-l { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background: var(--bluelt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.faq-head { text-align: center; margin-bottom: 40px; }
.faq-head h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 8px;
}
.faq-head h2 span { color: var(--blue); }
.faq-head p {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: rgba(24, 71, 194, .2); }
.faq-item[open] {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(24, 71, 194, .08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  letter-spacing: -.2px;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ''; display: none; }

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ba06);
  border: 1px solid var(--ba15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform .25s, background .15s;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.faq-answer a { color: var(--blue); font-weight: 600; }
.faq-answer a:hover { text-decoration: underline; }

/* ==========================================================================
   CTA Strip
   ========================================================================== */
.contact-cta {
  padding: 64px 0;
  text-align: center;
}
.contact-cta-inner {
  background: var(--blue);
  border-radius: 24px;
  padding: 52px 40px;
  position: relative;
  overflow: hidden;
}
.contact-cta-inner::before,
.contact-cta-inner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  pointer-events: none;
}
.contact-cta-inner::before {
  top: -120px; right: -120px;
  width: 320px; height: 320px;
}
.contact-cta-inner::after {
  bottom: -80px; left: -60px;
  width: 220px; height: 220px;
  border-color: rgba(255, 255, 255, .05);
}
.contact-cta-content { position: relative; z-index: 1; }
.contact-cta h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.contact-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
  max-width: 480px;
  margin: 0 auto 24px;
}


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .contact-options { padding: 40px 0 16px; }
  .contact-main { padding: 32px 0 60px; }
  .contact-form-card { padding: 28px; }
}

@media (max-width: 767px) {
  .contact-hero { padding: 44px 0 36px; }
  .contact-hero h1 { font-size: 34px; }
  .opt-card { padding: 22px; }
  .contact-form-card { padding: 22px; }
  .cf-title { font-size: 22px; }
  .faq-section { padding: 48px 0; }
  .faq-question { padding: 16px 18px; font-size: 14px; }
  .faq-answer { padding: 0 18px 16px; font-size: 13.5px; }
  .contact-cta { padding: 48px 0; }
  .contact-cta-inner { padding: 36px 24px; border-radius: 16px; }
}
