/* ============================================
   Contact Page Styles
   ============================================ */

/* Hero — uses shared .subpage-hero from pages.css */

/* Contact Main - Stacked Layout */
.contact-main {
  background: var(--white);
  padding: 64px 0;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.contact-stacked {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.contact-stacked .agent-info-card {
  grid-column: 1;
  grid-row: 1;
}

.contact-stacked .contact-details-wrap {
  grid-column: 1;
  grid-row: 2;
}

.contact-stacked .contact-details-grid {
  grid-column: auto;
  grid-row: auto;
}

.contact-stacked .contact-form-card {
  grid-column: 2;
  grid-row: 1 / 3;
}

/* Agent Info Card */
.agent-info-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--white);
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(11,46,89,0.08);
  border: 1px solid rgba(11,46,89,0.06);
}

.agent-info-photo {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(11,46,89,0.08);
}

.agent-info-body {
  flex: 1;
}

.agent-info-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.agent-info-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.agent-info-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Contact Details Grid */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-hours-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--gray-600);
}

.contact-hours-note svg {
  width: 16px;
  height: 16px;
  color: var(--navy);
  flex-shrink: 0;
}

.contact-details-grid .social-card-handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Contact Form Card */
.contact-form-card {
  background: var(--white);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(11,46,89,0.08);
  border: 1px solid rgba(11,46,89,0.06);
}

.contact-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-100);
}

.contact-form-header svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.contact-form-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0 14px;
  font-family: 'BetterTogether', sans-serif;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  box-sizing: border-box;
}

.contact-form input:not([type="checkbox"]):not([type="radio"]),
.contact-form select {
  height: 40px;
  line-height: 38px;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea {
  resize: vertical;
  min-height: 90px;
  height: auto;
  padding: 12px 14px;
  line-height: 1.5;
}

.contact-form .btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 4px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  color: var(--line-green);
  font-weight: 500;
}

.form-success.show {
  display: block;
}

/* Insurance Types Grid */
.insurance-types {
  background: var(--white);
}

.insurance-types-inner {
  max-width: 1000px;
}

.insurance-types-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ins-type-card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(11,46,89,0.06);
  border-radius: 0.875rem;
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(11,46,89,0.06);
}

.ins-type-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11,46,89,0.12);
}

.ins-type-card .step-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(11,46,89,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--navy);
}

.ins-type-card .step-icon-wrap svg,
.ins-type-card .step-icon-wrap i {
  width: 22px;
  height: 22px;
}

.ins-type-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* Social Channels Section */
.social-map-section {
  background: var(--white);
}

.social-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.social-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(11,46,89,0.06);
  box-shadow: 0 4px 20px rgba(11,46,89,0.08);
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11,46,89,0.14);
}

.social-card .step-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-card .step-icon-wrap svg,
.social-card .step-icon-wrap i {
  width: 22px;
  height: 22px;
}

.social-icon-fb { background: rgba(24,119,242,0.1) !important; color: #1877F2 !important; }
.social-icon-tt { background: rgba(0,0,0,0.06) !important; color: #000 !important; }
.social-icon-yt { background: rgba(255,0,0,0.08) !important; color: #FF0000 !important; }
.social-icon-line { background: rgba(6,199,85,0.1) !important; color: var(--line-green) !important; }
.social-icon-phone { background: rgba(11,46,89,0.08) !important; color: var(--navy) !important; }
.social-icon-mail { background: rgba(200,155,60,0.12) !important; color: var(--gold) !important; }
.social-icon-web { background: rgba(41,128,185,0.1) !important; color: #2980b9 !important; }
.social-icon-brand {
  background: #fff !important;
  padding: 6px;
}

.social-card-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-card-platform {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.social-card-handle {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.social-card-info {
  flex: 1;
  text-align: left;
}

.social-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.65;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: 12px;
}

.social-card-arrow {
  flex-shrink: 0;
  color: var(--gray-300);
  transition: color 0.2s, transform 0.2s;
}

.social-card-arrow svg {
  width: 16px;
  height: 16px;
}

.social-card:hover .social-card-arrow {
  color: var(--navy);
  transform: translateX(3px);
}

/* FAQ Section */
.faq-section {
  background: var(--white);
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(11,46,89,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(11,46,89,0.04);
}

.faq-item[open] {
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(11,46,89,0.1);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--navy);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,46,89,0.06);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.faq-item[open] summary::after {
  content: '\2212';
  background: var(--navy);
  color: var(--white);
}

.faq-item summary:hover {
  background: var(--gray-50);
}

.faq-answer {
  padding: 0 24px 18px;
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* Responsive */
@media (max-width: 1024px) {
  .social-buttons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .insurance-types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .contact-stacked {
    grid-template-columns: 1fr;
  }

  .contact-stacked .agent-info-card,
  .contact-stacked .contact-details-wrap,
  .contact-stacked .contact-form-card {
    grid-column: 1;
    grid-row: auto;
  }

  .agent-info-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .insurance-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-buttons-grid {
    grid-template-columns: 1fr;
  }

  .social-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Consult Modal */
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.consult-modal.is-open {
  display: flex;
}

.consult-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 46, 89, 0.55);
}

.consult-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 583px;
  max-height: 90vh;
  overflow-y: auto;
}

.consult-modal-dialog .contact-form-card {
  margin: 0;
}

.consult-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s;
}

.consult-modal-close:hover {
  background: var(--gray-200);
}

.consult-modal-close svg {
  width: 18px;
  height: 18px;
}
