/* WDIGC Premium Locate Page Styling */

/* Page Hero */
.locate-hero {
  background: linear-gradient(135deg, var(--obsidian-dark), var(--obsidian));
  color: var(--white);
  padding: 160px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.locate-hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(234, 28, 36, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.locate-hero h1 {
  font-family: var(--heading);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.locate-hero p {
  font-size: 1.1rem;
  color: var(--muted-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cathedral International HQ Showcase */
.hq-section {
  padding: 60px 0;
}

.hq-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: stretch;
}

.map-container {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  height: 100%;
  min-height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
  display: block;
}

.hq-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.hq-badge {
  align-self: flex-start;
  background: rgba(234, 28, 36, 0.05);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 16px;
}

.hq-title {
  font-family: var(--heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

.hq-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 30px;
}

.hq-info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hq-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hq-info-text h4 {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.hq-info-text p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Connect Centres Global Network Grid */
.network-section {
  background: var(--alabaster);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}

.network-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.network-header h2 {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.network-header p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.branch-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  transition: all var(--transition);
}

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

.branch-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--line);
  transition: all var(--transition);
}

.branch-card:hover::before {
  background: var(--accent);
  width: 6px;
}

.branch-type {
  background: var(--soft);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 16px;
}

.branch-name {
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.branch-addr {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.branch-contact {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  flex-wrap: wrap;
  gap: 8px;
}

/* Plan Your Visit Interactive Panel */
.visit-section {
  padding: 80px 0;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.visit-info h2 {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.visit-info p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 40px;
}

.visit-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.visit-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(234, 28, 36, 0.08);
  color: var(--accent);
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text h4 {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-text p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.visit-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.visit-form-title {
  font-family: var(--heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.visit-form-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Plan Your Visit Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.form-control {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.9rem;
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
}

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

.submit-btn {
  width: 100%;
  padding: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Modals & Pass Lightbox overlays */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  text-align: center;
}

.modal-title {
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0;
}

.modal-close-btn {
  position: absolute;
  right: 24px;
  top: 24px;
  background: var(--soft);
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close-btn:hover {
  background: var(--line);
  color: var(--ink);
}

.ticket-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ticket-footer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0;
}

/* virtual welcome pass design */
.wdigc-ticket {
  background: linear-gradient(135deg, var(--charcoal), var(--obsidian-dark));
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: var(--white);
  position: relative;
  box-shadow: var(--shadow);
}

.wdigc-ticket::before,
.wdigc-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  transform: translateY(-50%);
}

.wdigc-ticket::before {
  left: -10px;
  border-right: 2px solid var(--accent);
}

.wdigc-ticket::after {
  right: -10px;
  border-left: 2px solid var(--accent);
}

.ticket-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ticket-code {
  font-family: monospace;
  font-size: 0.8rem;
  background: rgba(234, 28, 36, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius);
}

.ticket-user {
  text-align: center;
  margin-bottom: 20px;
}

.ticket-user h3 {
  font-family: var(--heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.ticket-user p {
  font-size: 0.8rem;
  color: var(--muted-light);
  margin-top: 4px;
}

.ticket-dashed-line {
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  margin: 20px 0;
}

.ticket-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ticket-meta h4 {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.ticket-meta p {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0;
}

/* Giving Modal styling match */
.giving-modal-content {
  background: linear-gradient(135deg, var(--charcoal), var(--obsidian-dark)) !important;
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.modal-close-giving {
  position: absolute;
  right: 24px;
  top: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  font-size: 1.8rem;
  color: var(--muted-light);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close-giving:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.giving-modal-content .modal-title {
  color: var(--white) !important;
}

.bank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

/* circular scroll back to top */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  font-size: 1.2rem;
  font-weight: 700;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(234, 28, 36, 0.2);
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .hq-grid {
    grid-template-columns: 1fr;
  }
  .map-container {
    min-height: 380px;
  }
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .branches-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal-content {
    padding: 24px;
  }
  .visit-form-card {
    padding: 24px;
  }
  .hq-card {
    padding: 24px;
  }
}
