/* ==========================================================================
   Bhawal Engineers & Construction Ltd. (BECL) - Contact Us Page Stylesheet
   Design Reference: Get a FREE Coworking Space Layout Pack for Divi.jpg
   Aesthetic: Ultra-clean Minimalist Architectural & Modern Editorial Layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL CANVAS & LAYOUT WRAPPER
   -------------------------------------------------------------------------- */
.contact-page-body {
  background-color: #F6F6F8;
  color: #111111;
  font-family: var(--font-body, 'Montserrat', sans-serif);
}

.contact-page-wrapper {
  position: relative;
  width: 100%;
  background-color: #F6F6F8;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  padding: 60px 0 60px;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --------------------------------------------------------------------------
   2. "GET IN TOUCH" HERO & HEADER
   -------------------------------------------------------------------------- */
.contact-header-block {
  margin-bottom: 50px;
}

.contact-hero-title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 700;
  color: #111111;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. TWO-COLUMN MAIN CONTACT GRID (FORM & OFFICES)
   -------------------------------------------------------------------------- */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: start;
}

/* Left Column: Form */
.contact-form-col {
  display: flex;
  flex-direction: column;
}

.contact-form-title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.55rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #111111;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.contact-form-intro {
  font-size: 0.94rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 34px;
}

.contact-line-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.line-input-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.line-input-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.line-input,
.line-select,
.line-textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #111111;
  background: transparent;
  padding: 8px 0;
  font-family: inherit;
  font-size: 0.95rem;
  color: #111111;
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.line-input::placeholder,
.line-textarea::placeholder {
  color: #999999;
  font-weight: 400;
}

.line-input:focus,
.line-select:focus,
.line-textarea:focus {
  border-bottom-color: var(--gold-primary, #BA8934);
  box-shadow: 0 1px 0 var(--gold-primary, #BA8934);
}

.line-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 14px;
  padding-right: 24px;
}

.line-textarea {
  resize: vertical;
  min-height: 70px;
}

.form-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.contact-submit-btn {
  background: var(--gold-primary, #BA8934);
  background: linear-gradient(135deg, #DEB853 0%, #BA8934 50%, #9E6B1F 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 13px 32px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(186, 137, 52, 0.35);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.contact-submit-btn .btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 1.1rem;
}

.contact-submit-btn:hover {
  background: linear-gradient(135deg, #E6C76E 0%, #C7973E 50%, #8C5D17 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(186, 137, 52, 0.45);
}

.contact-submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.contact-form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.contact-form-feedback.success {
  display: block;
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

/* Right Column: Direct Contacts & Offices */
.contact-details-col {
  border-left: 1px solid #E5E2DC;
  padding-left: 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-detail-block {
  display: flex;
  flex-direction: column;
}

.detail-block-title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111111;
  margin-bottom: 6px;
}

.detail-block-desc {
  font-size: 0.88rem;
  color: #666666;
  line-height: 1.55;
  margin-bottom: 12px;
}

.detail-link-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.detail-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-primary, #BA8934);
  fill: currentColor;
}

.detail-primary-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-primary, #BA8934);
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-primary-link:hover {
  color: var(--gold-hover, #9E6B1F);
  text-decoration: underline;
}

.detail-address-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #222222;
  line-height: 1.5;
}

.detail-meta-text {
  font-size: 0.82rem;
  color: #777777;
  line-height: 1.5;
  margin-top: 4px;
  padding-left: 28px;
}

.detail-meta-text strong {
  color: #444444;
}

/* --------------------------------------------------------------------------
   4. INTERACTIVE ARCHITECTURAL MAP SECTION (MATCHING DIVI REFERENCE)
   -------------------------------------------------------------------------- */
.contact-map-section {
  margin: 70px 0 90px;
}

.contact-map-frame {
  position: relative;
  width: 100%;
  height: 490px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E5E2DC;
  background: #E8E7E3;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
  user-select: none;
}

/* Top-Left Controls: Map / Satellite & Location */
.map-ctrl-top-left {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.map-type-toggle,
.map-location-toggle {
  display: inline-flex;
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 1px solid #DCD9D1;
}

.map-ctrl-btn,
.map-loc-btn {
  background: #FFFFFF;
  border: none;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #444444;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.map-ctrl-btn + .map-ctrl-btn,
.map-loc-btn + .map-loc-btn {
  border-left: 1px solid #EFECE6;
}

.map-ctrl-btn.active,
.map-loc-btn.active {
  background: #111111;
  color: #FFFFFF;
}

.map-ctrl-btn:hover:not(.active),
.map-loc-btn:hover:not(.active) {
  background: #F5F4F0;
  color: #111111;
}

/* Top-Right Controls: Google Maps Link & Fullscreen */
.map-ctrl-top-right {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: flex;
  gap: 8px;
  align-items: center;
}

.map-external-link {
  background: #FFFFFF;
  color: #111111;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid #DCD9D1;
  transition: all 0.2s ease;
}

.map-external-link:hover {
  background: var(--gold-primary, #BA8934);
  color: #FFFFFF;
  border-color: var(--gold-primary, #BA8934);
}

.map-ctrl-icon-btn {
  background: #FFFFFF;
  border: 1px solid #DCD9D1;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #333333;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease;
}

.map-ctrl-icon-btn:hover {
  background: #F5F4F0;
}

/* Zoom Controls (+ / -) */
.map-ctrl-zoom {
  position: absolute;
  bottom: 40px;
  right: 18px;
  z-index: 20;
  background: #FFFFFF;
  border-radius: 4px;
  border: 1px solid #DCD9D1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-zoom-btn {
  background: #FFFFFF;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #444444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.map-zoom-btn:hover {
  background: #F5F4F0;
  color: #111111;
}

.map-zoom-divider {
  height: 1px;
  background: #EFECE6;
  width: 100%;
}

/* Map Viewport & SVG Canvas */
.map-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.map-viewport:active {
  cursor: grabbing;
}

.map-svg-canvas {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

/* Satellite Mode Styles */
.contact-map-frame.satellite-mode .map-svg-canvas {
  filter: contrast(110%) brightness(85%);
}

.contact-map-frame.satellite-mode .map-bg-fill {
  fill: #16222F !important;
}

.contact-map-frame.satellite-mode .map-water-body {
  fill: #0F172A !important;
}

.contact-map-frame.satellite-mode .map-arterial-road {
  fill: #334155 !important;
  stroke: #475569 !important;
}

.contact-map-frame.satellite-mode .map-secondary-road {
  fill: #1E293B !important;
  stroke: #334155 !important;
}

.contact-map-frame.satellite-mode .map-building-footprint {
  fill: #1E293B !important;
  stroke: #334155 !important;
}

.contact-map-frame.satellite-mode .map-road-label,
.contact-map-frame.satellite-mode .map-area-label {
  fill: #94A3B8 !important;
}

/* Floating Architectural Info Card */
.contact-map-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 25;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 20px;
  border-radius: 6px;
  border: 1px solid #DCD9D1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  max-width: 360px;
  pointer-events: auto;
  opacity: 1 !important;
  visibility: visible !important;
}

.map-badge-tag {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-dark, #9E6B1F);
  background: rgba(186, 137, 52, 0.12);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
  letter-spacing: 0.8px;
}

.map-badge-title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #111111;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.map-badge-address {
  font-size: 0.82rem;
  color: #555555;
  line-height: 1.45;
  margin-bottom: 10px;
}

.map-badge-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #EFECE6;
  padding-top: 8px;
}

.map-badge-dir-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-primary, #BA8934);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.map-badge-dir-link:hover {
  color: var(--gold-hover, #9E6B1F);
  text-decoration: underline;
}

.map-status-pill {
  font-size: 0.72rem;
  color: #2E7D32;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-status-dot {
  width: 7px;
  height: 7px;
  background-color: #2E7D32;
  border-radius: 50%;
  display: inline-block;
}

/* Map Attribution at Bottom Right */
.map-attribution {
  position: absolute;
  bottom: 8px;
  right: 18px;
  z-index: 10;
  font-size: 0.64rem;
  color: #777777;
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 8px;
  border-radius: 3px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. "FREQUENTLY ASKED QUESTIONS." ACCORDION SECTION
   -------------------------------------------------------------------------- */
.contact-faq-section {
  margin: 40px 0 90px;
}

.contact-faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

/* FAQ Left Column */
.faq-left-col {
  display: flex;
  flex-direction: column;
}

.faq-section-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.faq-hero-heading {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #111111;
  letter-spacing: 0.5px;
  line-height: 1.08;
  margin: 0;
}

/* FAQ Right Column: Accordion */
.faq-right-col {
  display: flex;
  flex-direction: column;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid #E5E2DC;
  padding: 22px 0;
  transition: background 0.2s ease;
}

.faq-item:first-child {
  padding-top: 0;
}

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

.faq-question-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.faq-question-text {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #111111;
  letter-spacing: 0.3px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-item.active .faq-question-text {
  color: #111111;
}

.faq-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #111111;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq-item.active .faq-indicator {
  background-color: var(--gold-primary, #BA8934);
  transform: scale(1.15);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.faq-item.active .faq-answer-panel {
  max-height: 250px;
  opacity: 1;
  margin-top: 14px;
}

.faq-answer-content {
  font-size: 0.94rem;
  color: #666666;
  line-height: 1.65;
  padding-right: 20px;
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE DESIGN (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-details-col {
    border-left: none;
    border-top: 1px solid #E5E2DC;
    padding-left: 0;
    padding-top: 40px;
    gap: 32px;
  }

  .contact-faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .contact-page-wrapper {
    padding: 36px 0 20px;
  }

  .contact-container {
    padding: 0 20px;
  }

  .contact-header-block {
    margin-bottom: 32px;
  }

  .form-two-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-map-frame {
    height: 420px;
  }

  .map-ctrl-top-left {
    top: 12px;
    left: 12px;
  }

  .map-ctrl-top-right {
    top: 12px;
    right: 12px;
  }

  .map-external-link span {
    display: none;
  }

  .contact-map-card {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
    padding: 12px 16px;
  }

  .map-attribution {
    display: none;
  }

  .faq-question-text {
    font-size: 1rem;
  }

  .faq-answer-content {
    font-size: 0.88rem;
  }
}
