/* Contacts Page Styles */

.contacts-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #EAF6FC 100%);
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 25px;
}

.breadcrumbs li::after {
  content: '/';
  margin-left: 10px;
  color: var(--color-text-muted);
}

.breadcrumbs li:last-child::after {
  content: '';
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-btn);
}

.breadcrumbs span {
  color: var(--color-heading);
  font-weight: 500;
}

.hero-content {
  max-width: 820px;
}

.hero-title {
  font-size: 38px;
  font-weight: 700;
  margin: 12px 0 16px;
  color: var(--color-heading);
}

.hero-desc {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Contacts Cards Grid */
.contacts-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: -20px;
}

.contacts-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.contacts-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.contacts-card-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-section);
  color: var(--color-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.contacts-card-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--color-heading);
}

.highlight-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.highlight-text a {
  color: var(--color-heading);
}

.highlight-text a:hover {
  color: var(--color-btn);
}

.sub-text {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 4px;
}

.card-tag {
  display: inline-block;
  margin-top: 12px;
  background: rgba(35, 125, 181, 0.08);
  color: var(--color-btn);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Map & Directions Layout */
.map-directions-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: flex-start;
}

.directions-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-step {
  display: flex;
  gap: 18px;
  background: #FFFFFF;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s;
}

.timeline-step:hover {
  border-color: var(--color-btn);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--color-btn);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-details h4 {
  font-size: 16px;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.step-details p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Interactive Map Visual Box */
.interactive-map-box {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--color-border);
}

.map-title-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--color-heading);
}

.map-link-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-btn);
}

.map-canvas-mock {
  position: relative;
  height: 340px;
  background: #F4F8FA;
  overflow: hidden;
}

.map-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
}

.map-route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s;
}

.map-pin:hover {
  transform: scale(1.1);
}

.pin-icon {
  width: 38px;
  height: 38px;
  background: #FFFFFF;
  border: 2px solid var(--color-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.pin-customs {
  top: 70%;
  left: 15%;
}

.pin-clinic {
  top: 25%;
  left: 68%;
}

.pin-hotel {
  top: 35%;
  left: 48%;
}

.active-pin .pin-icon {
  background: var(--color-btn);
  color: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 0 15px rgba(35, 125, 181, 0.5);
}

.pin-popup {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-heading);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.pin-popup strong {
  color: #FFFFFF;
}

.pin-popup span {
  font-size: 11px;
  color: var(--color-accent);
}

.map-overlay-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #28a745;
  border-radius: 50%;
  box-shadow: 0 0 8px #28a745;
}

.map-footer-note {
  padding: 18px 24px;
  background: #FFFFFF;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
}

.map-footer-note code {
  background: var(--bg-section);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-heading);
  font-family: inherit;
  font-weight: 500;
}

/* Form section enhancements */
.direct-contact-box {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 15px;
}

.dc-avatar {
  width: 50px;
  height: 50px;
  background: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.dc-info strong {
  display: block;
  font-size: 14px;
  color: var(--color-heading);
}

.dc-info span {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-btn);
}

.form-box textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.form-box textarea:focus {
  outline: none;
  border-color: var(--color-btn);
}

/* Accordion FAQ */
.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s;
}

.faq-item.active {
  border-color: var(--color-btn);
}

.faq-question {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 {
  font-size: 17px;
  color: var(--color-heading);
  font-weight: 500;
}

.faq-toggle {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-btn);
  transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 28px;
  background: var(--bg-section);
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 16px 28px 24px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Modal styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(46, 70, 99, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-header h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Mandatory Cookie Banner CSS */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2E4663;
  color: #FFFFFF;
  padding: 16px 0;
  z-index: 1500;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.cookie-text a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-btn);
  color: #FFFFFF;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top-btn.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--color-btn-hover);
  transform: translateY(-3px);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .contacts-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-directions-wrapper {
    grid-template-columns: 1fr;
  }
  .form-wrapper {
    grid-template-columns: 1fr;
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .contacts-hero {
    padding: 30px 0 40px;
  }
  .hero-title {
    font-size: 28px;
  }
  .contacts-cards-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner .btn {
    width: 100%;
  }
}