/* Base container constraints */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Response Status Banners */
.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 500;
}

.success-alert {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-alert {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Flexible Grid System */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.input-group label {
  font-weight: 600;
  color: #333;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

.input-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-send {
  padding: 14px 28px;
  background-color: #000;
  /* Adjust to match branding colors */
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-send:hover {
  background-color: #333;
}

/* Info Cards Wrapper */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: #fdfdfd;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
}

.card i {
  font-size: 24px;
  color: #555;
  margin-bottom: 12px;
}

/* Google Map Wrapper Styles */
.map-section {
  margin-top: 50px;
  margin-bottom: 40px;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: #222;
}

.map-container {
  position: relative;
  width: 100%;
  /* Establishes a perfect 16:9 widescreen ratio */
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #eee;
}

/* Forces the iframe to perfectly fill the aspect-ratio container */
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {

  /* Side-by-side grid layout on larger displays */
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 12px;
  }

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

  .map-container {
    /* The 4:3 aspect ratio is all you need here. */
    /* It scales the container height perfectly based on the device width. */
    aspect-ratio: 4 / 3;
  }
}

/* Container holding map and overlay card */
.map-wrapper {
  position: relative;
  width: 100%;
}

/* Custom Overlay Card styling */
.map-info-card {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  /* Modern blur effect */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-family: inherit;
}

.brand-name {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.shop-location {
  font-size: 13px;
  color: #666;
  margin: 0 0 12px 0;
}

.shop-location i {
  color: #e74c3c;
  margin-right: 4px;
}

.card-divider {
  border: 0;
  height: 1px;
  background: #eee;
  margin: 12px 0;
}

.hours-title {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.hours-list li span:first-child {
  font-weight: 500;
}

/* Mobile Responsiveness Rules */
@media (max-width: 768px) {

  /* Stacks the card above the map on smaller screens so the map remains fully interactive and visible */
  .map-info-card {
    position: relative;
    top: 0;
    left: 0;
    width: auto;
    margin-bottom: 15px;
    box-shadow: none;
    border: 1px solid #eaeaea;
    background: #fafafa;
  }
}


/* Map Header Styles */
.map-header {
  text-align: center;
  margin-bottom: 25px;
}

.map-subtitle {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

/* Action button layout */
.map-action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  /* Wraps cleanly on tiny screens */
}

/* Interactive Navigation Chips */
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-maps-btn {
  background-color: #ffffff;
  color: #4285F4;
  border: 1px solid #e0e0e0;
}

.google-maps-btn:hover {
  background-color: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.apple-maps-btn {
  background-color: #000000;
  color: #ffffff;
}

.apple-maps-btn:hover {
  background-color: #222222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}