/* ==========================================================================
   BookWellNow — Contact Page Styles (SaaS Premium Redesign)
   Palette: #5700B4 (Brand Purple), #F3F0FF (Light Slate Lavender), #0F172A (Slate 900)
   ========================================================================== */

.contact-page-wrapper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1E293B; /* Slate 800 */
  background-color: #F8FAFC; /* Slate 50 */
  min-height: 100vh;
  padding-top: 80px; /* Offset header */
  overflow-x: hidden;
}

/* ---- Contact Hero Grid & Radiants ----------------------------------------- */
.contact-hero {
  position: relative;
  padding: 120px 0 100px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0; /* Slate 200 */
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 30%;
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(87, 0, 180, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.contact-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .contact-hero {
    padding: 80px 0 60px;
  }
  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.contact-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .contact-hero-content {
    align-items: center;
  }
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(87, 0, 180, 0.07);
  color: #5700B4;
  border-radius: 50px;
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(87, 0, 180, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-heading {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 850;
  color: #0F172A; /* Slate 900 */
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}

.contact-heading span {
  color: #5700B4;
  position: relative;
}

.contact-subheading {
  font-size: 1.15rem;
  color: #475569; /* Slate 600 */
  line-height: 1.65;
  max-width: 580px;
  margin: 0 0 35px;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  border-top: 1px solid #F1F5F9;
  padding-top: 24px;
  width: 100%;
}

@media (max-width: 992px) {
  .trust-indicators {
    justify-content: center;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-icon-star {
  color: #F59E0B; /* Amber 500 */
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.trust-check {
  color: #10B981; /* Emerald 500 */
  flex-shrink: 0;
}

.trust-text {
  font-size: 0.925rem;
  color: #475569;
}

.trust-text strong {
  color: #0F172A;
}

/* Right Side Illustration Card */
.contact-hero-graphic-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.contact-hero-card {
  position: relative;
  max-width: 460px;
  width: 100%;
  border-radius: var(--docs-radius-lg, 16px);
  overflow: visible;
  background: transparent;
}

.contact-hero-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.5s ease;
}

.contact-hero-card:hover .contact-hero-img {
  transform: translateY(-5px);
}

.floating-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 992px) {
  .floating-badge {
    left: 20px;
  }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-dot::after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: #10B981;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ---- Contact Grid & Columns -------------------------------------- */
.contact-main-section {
  padding: 80px 0 100px;
}

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* Response Time Badge */
.response-time-badge {
  display: inline-flex;
  align-items: center;
  background: #FFFBEB; /* Amber 50 */
  border: 1px solid #FDE68A; /* Amber 200 */
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: #78350F; /* Amber 900 */
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-accent {
  color: #D97706; /* Amber 600 */
  margin-right: 4px;
}

.contact-info-block h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.contact-info-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* Support Cards */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: 0 12px 20px -3px rgba(15, 23, 42, 0.06);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #F3F0FF; /* Soft lavender */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5700B4;
  flex-shrink: 0;
  transition: background 0.2s;
}

.info-card:hover .info-icon {
  background: #E8E4F3;
}

.info-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px;
}

.info-details p {
  font-size: 0.925rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

.info-details a {
  color: #5700B4;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
}

.info-details a:hover {
  opacity: 0.85;
}

/* FAQ Preview Links */
.faq-preview-wrap {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
}

.faq-preview-wrap h4 {
  font-size: 1rem;
  font-weight: 750;
  color: #0F172A;
  margin: 0 0 16px;
}

.faq-preview-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-preview-links li {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  padding-left: 18px !important;
}

.faq-preview-links li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #5700B4;
  font-weight: 700;
}

.faq-preview-links a {
  font-size: 0.925rem;
  color: #475569;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.15s;
}

.faq-preview-links a:hover {
  color: #5700B4;
}

/* ---- Right Column: Form Card -------------------------------------- */
.contact-form-wrapper {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px; /* Enhanced 24px rounded corners */
  padding: 48px;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.03), 0 10px 10px -5px rgba(15, 23, 42, 0.02); /* Soft premium shadow */
  position: relative;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 5px; /* Top accent border */
  background: linear-gradient(90deg, #5700B4, #7C3AED);
  border-radius: 24px 24px 0 0;
}

.contact-form-wrapper h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 30px;
  letter-spacing: -0.02em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px; /* Better input spacing */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155; /* Slate 700 */
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #CBD5E1; /* Slate 300 */
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0F172A;
  background: #FFFFFF;
  transition: all 0.2s;
  outline: none;
}

.form-control::placeholder {
  color: #94A3B8;
}

.form-control:hover {
  border-color: #94A3B8;
}

.form-control:focus {
  border-color: #5700B4;
  box-shadow: 0 0 0 3px rgba(87, 0, 180, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  margin-top: 10px;
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #5700B4;
  background: #5700B4;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(87, 0, 180, 0.18);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit:hover {
  background: #44008F;
  border-color: #44008F;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(87, 0, 180, 0.28);
}

@media (max-width: 600px) {
  .contact-form-wrapper {
    padding: 32px 20px;
  }
}

/* ---- Dedicated FAQ Accordion Section ------------------------------ */
.contact-faq-section {
  background-color: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 100px 0;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-header-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.faq-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #5700B4;
  background: rgba(87, 0, 180, 0.05);
  border: 1px solid rgba(87, 0, 180, 0.12);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.faq-header-wrap h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.faq-header-wrap h2 span {
  color: #5700B4;
}

.faq-header-wrap p {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}

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

.faq-accordion-item {
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-accordion-item.active {
  border-color: #5700B4;
  background: #FFFFFF;
  box-shadow: 0 10px 15px -3px rgba(87, 0, 180, 0.03), 0 4px 6px -2px rgba(87, 0, 180, 0.02);
}

.faq-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  transition: color 0.15s;
}

.faq-accordion-header:hover {
  color: #5700B4;
}

.faq-accordion-icon {
  color: #64748B;
  display: flex;
  align-items: center;
  transition: transform 0.25s ease, color 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-accordion-item.active .faq-accordion-icon {
  transform: rotate(180deg);
  color: #5700B4;
}

.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-content p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

.faq-accordion-content a {
  color: #5700B4;
  font-weight: 600;
  text-decoration: underline;
}

/* ---- Conversion-Focused CTA Section ------------------------------ */
.contact-final-cta {
  background: linear-gradient(135deg, #5700B4 0%, #7C3AED 100%);
  padding: 90px 2rem;
  text-align: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.contact-final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-container {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-final-cta h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 850;
  color: #FFFFFF;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.contact-final-cta p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0 0 35px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: #FFFFFF;
  color: #5700B4 !important;
  font-weight: 750;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #F8FAFC;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---- Pre-Footer Links Card Section ------------------------------ */
.contact-pre-footer {
  background-color: #0F172A; /* Slate 900 */
  padding: 80px 2rem;
  border-bottom: 1px solid #1E293B;
}

.pre-footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.pre-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
}

@media (max-width: 768px) {
  .pre-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.pre-footer-col h4 {
  font-size: 0.95rem;
  font-weight: 750;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 20px;
  letter-spacing: 0.08em;
}

.pre-footer-col.trust-statement-col h4 {
  font-size: 1.4rem;
  text-transform: none;
  letter-spacing: -0.02em;
}

.pre-footer-logo {
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 16px;
}

.pre-footer-logo span {
  color: #7C3AED;
}

.trust-statement-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94A3B8; /* Slate 400 */
  max-width: 320px;
  margin: 0;
}

.pre-footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pre-footer-col li {
  margin: 0 !important;
  padding: 0 !important;
}

.pre-footer-col a {
  font-size: 0.9rem;
  color: #94A3B8;
  text-decoration: none !important;
  transition: color 0.15s;
}

.pre-footer-col a:hover {
  color: #FFFFFF;
}

/* Custom Select Dropdown Styling */
.custom-select-group {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.custom-select-container {
  position: relative;
  width: 100%;
  font-family: inherit;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border: 1px solid #CBD5E1; /* Matches other fields */
  border-radius: 10px;
  background: #FFFFFF;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  color: #0F172A;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select-trigger:hover {
  border-color: #94A3B8; /* Matches other fields */
}

.custom-select-container.open .custom-select-trigger {
  border-color: #5700B4; /* Brand purple */
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 0 0 3px rgba(87, 0, 180, 0.08); /* Matches other fields */
}

.custom-select-arrow {
  display: flex;
  align-items: center;
  color: #0F172A;
  transition: transform 0.2s ease;
}

.custom-select-container.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #5700B4; /* Brand purple border */
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: none;
  z-index: 999;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.custom-select-container.open .custom-select-options {
  display: block;
}

.custom-select-options li {
  padding: 13px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #0F172A;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.custom-select-options li:first-child {
  border-top: none;
}

.custom-select-options li:hover,
.custom-select-options li.selected {
  background-color: #5700B4 !important; /* Brand purple selected background */
  color: #FFFFFF !important; /* White text */
}

/* Required Asterisk Styling */
.required-asterisk {
  color: #EF4444; /* High-contrast red */
  margin-left: 3px;
  font-weight: 700;
}
