:root {
  --primary-blue: #0B5ED7;
  /* Siemens/Honeywell Premium Blue */
  --primary-hover: #0A58CA;
  /* Darker Blue */
  --accent-cyan: #00C2FF;
  /* Tech Cyan */
  --dark-bg: #071B2F;
  /* Deep Slate */
  --dark-blue: #071B2F;
  /* Deep Slate */
  --text-main: #1E293B;
  /* Slate (800) */
  --text-muted: #64748B;
  /* Slate (500) */
  --bg-light: #F5F8FC;
  /* Slate Light */
  --bg-white: #ffffff;
  --white: #ffffff;
  --border-color: rgba(7, 27, 47, 0.08);
  --primary-gradient: linear-gradient(135deg, #0B5ED7 0%, #00C2FF 100%);
  --radius-lg: 20px;
  --radius-btn: 50px;
  --shadow-soft: 0 10px 30px rgba(7, 27, 47, 0.05);
  --shadow-medium: 0 15px 40px rgba(7, 27, 47, 0.08);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Status Colors */
  --green-bg: rgba(16, 185, 129, 0.08);
  --green-text: #10b981;
  --green-border: rgba(16, 185, 129, 0.15);
  --red-bg: rgba(239, 68, 68, 0.08);
  --red-text: #ef4444;
  --red-border: rgba(239, 68, 68, 0.15);
  --blue-box-bg: rgba(11, 94, 215, 0.06);
  --blue-box-text: #0B5ED7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.breadcrumbs {
  font-family: 'Poppins', sans-serif;
}

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

/* =========================================
   2. HERO BANNER SECTION
   ========================================= */
.contact-section {
  padding: 110px 0 80px 0;
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  z-index: 0;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* --- Left Panel: Details --- */
.contact-details-panel {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(7, 27, 47, 0.35);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-details-panel:hover {
  border-color: #DC2626; /* Changed to red hover outline */
  box-shadow: 0 15px 30px rgba(220, 38, 38, 0.2); /* Red glowing shadow */
}

.contact-details-panel .section-header {
  text-align: left;
  align-items: flex-start;
  margin-bottom: 16px;
}

.contact-details-panel .section-header .main-title {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.contact-details-panel .section-header .accent-line {
  margin-left: 0;
  margin-right: 0;
}

.contact-details-panel .section-header p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.info-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-gradient);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(7, 27, 47, 0.06), 0 4px 12px rgba(11, 94, 215, 0.04);
  border-color: rgba(11, 94, 215, 0.2);
}

.info-item:hover::after {
  transform: scaleY(1);
  transform-origin: top;
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 1rem;
  transition: var(--transition);
  z-index: 2;
}

.info-item:hover .info-icon {
  background: var(--primary-gradient);
  color: var(--white);
  border-color: transparent;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 16px rgba(11, 94, 215, 0.25);
}

.info-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  z-index: 2;
}

.info-text strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1px;
}

.info-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  display: inline-block;
  position: relative;
}

.info-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--primary-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-link:hover {
  color: var(--primary-blue);
  transform: translateX(2px);
}

.info-link:hover::after {
  transform: scaleX(1);
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.social-btn {
  width: 42px;
  height: 42px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.social-btn:hover {
  background: var(--primary-gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(11, 94, 215, 0.3);
}

.social-btn i {
  transition: transform 0.3s ease;
}

.social-btn:hover i {
  transform: scale(1.1);
}

.contact-form-panel {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(7, 27, 47, 0.35);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  position: relative;
  z-index: 1;
}

.contact-form-panel:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

/* --- Spotlight Effect --- */
.contact-form-panel .spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* Match the parent's border-radius */
  background: radial-gradient(circle at var(--x) var(--y), rgba(142, 216, 255, 0.15), transparent 40%);
  pointer-events: none;
  /* Let mouse events pass through to the form */
  z-index: -1;
  /* Position it behind the form content but within the panel */
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-form-panel:hover .spotlight {
  opacity: 1;
}


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

.form-group {
  position: relative;
  /* Add padding on top to create space for the absolutely positioned label. */
  padding-top: 26px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  /* Position the label at the top of the group, above the input field. */
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0;
  /* Spacing is now handled by the parent's padding-top. */
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #dde4ee;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--dark-bg);
  background-color: var(--bg-light);
  transition: var(--transition);
  font-family: inherit;
}

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

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
  background-color: var(--white);
}

textarea.form-control {
  resize: vertical;
  padding: 14px 18px;
  /* Reset padding for a cleaner look */
  min-height: 140px;
}

select.form-control {
  appearance: none;
  cursor: pointer;
  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='%236b7280' 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 15px center;
  background-size: 15px;
}

.error-message {
  color: var(--red-text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
  display: none;
}

.form-control.invalid {
  border-color: var(--red-text) !important;
}

.form-control.invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary-gradient);
  color: var(--white) !important;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(11, 94, 215, 0.2);
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  box-shadow: 0 8px 25px rgba(11, 94, 215, 0.4);
  transform: translateY(-3px);
}

.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

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

  .contact-form-panel {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .contact-layout-grid {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 30px !important;
  }

  .contact-form-panel {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }

  .main-title {
    font-size: 1.8rem !important;
    margin-bottom: 10px !important;
  }

  .section-header {
    margin-bottom: 24px !important;
    text-align: center;
  }

  .section-header p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .form-group.full-width {
    grid-column: span 1 !important;
  }

  .contact-section {
    padding: 100px 0 40px 0 !important;
  }

  .info-list {
    gap: 15px !important;
  }

  .info-item {
    padding: 12px 16px !important;
    gap: 15px !important;
  }

  .info-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.15rem !important;
  }

  .info-text strong {
    font-size: 0.95rem !important;
  }

  .info-text .info-link {
    font-size: 0.9rem !important;
  }

  .contact-socials {
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 25px !important;
  }

  .social-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.95rem !important;
  }

  .submit-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
  }
}

/* =========================================
   2. LAYOUT GRID
   ========================================= */
.location-hours-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr;
  gap: 30px;
  align-items: stretch;
  margin-bottom: 70px;
}

/* =========================================
   3. MAP CONTAINER
   ========================================= */
.map-container {
  background-color: #ccc;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow-soft);
  position: relative;
  border: 1px solid var(--border-color);
}

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

/* =========================================
   4. BUSINESS HOURS CARD
   ========================================= */
.hours-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Header & Badge */
.hours-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hours-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: var(--transition);
}

.status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Dynamic Open/Close Classes */
.status-badge.open {
  background-color: var(--green-bg);
  color: var(--green-text);
  border-color: var(--green-border);
}

.status-badge.open .dot {
  background-color: var(--green-text);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.status-badge.closed {
  background-color: var(--red-bg);
  color: var(--red-text);
  border-color: var(--red-border);
}

.status-badge.closed .dot {
  background-color: var(--red-text);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Schedule Rows */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: auto;
  padding: 0;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-muted);
}

.schedule-row strong {
  color: var(--dark-bg);
  font-weight: 700;
}

.schedule-row strong.text-red {
  color: var(--red-text);
}

.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 5px 0;
}

/* Emergency Notice Box */
.emergency-box {
  background-color: var(--blue-box-bg);
  color: var(--blue-box-text);
  padding: 18px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 30px;
}

.emergency-box i {
  font-size: 1.1rem;
  margin-top: 2px;
}

.emergency-box p {
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
  text-align: left;
}

/* Responsive map adjustments */
@media (max-width: 992px) {
  .location-hours-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .map-container {
    height: 300px;
  }

  .hours-card {
    padding: 25px 20px;
  }
}