:root {
  --text-color: #333;
  --placeholder-color: #666;
  --border-radius: 8px;
}

.title,
.subtitle {
  text-align: center;
  text-transform: uppercase;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto 4rem auto;
}

/* Grid layout */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Card styles */
.card {
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Card variations */
.card-gray {
  background-color: #e2e5e2;
}

.card-green {
  background-color: #c1dfc4;
}

/* Content layout */
.card-content {
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Icon styles */
.icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
}

.icon-wrapper.gray {
  background-color: #fcfcfc77;
  color: #666666;
}

.icon-wrapper.green {
  background-color: #dbebdc;
  color: #666666;
}

/* Text styles */
.text-content {
  flex-grow: 1;
}

.location {
  text-decoration: none;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  font-family: "Baloo Bhai 2";
}

.card-text {
  color: #585858;
  font-size: 1rem;
  font-family: "Roboto";
  line-height: 1.5;
}

/* SVG optimization */
svg {
  width: 1.25rem;
  height: 1.25rem;
}

.form-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 6rem auto;
  padding: 8px 20px;
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.badge span {
  font-size: 0.875rem;
  color: var(--text-color);
  font-family: "Roboto";
}

.form-header h2 {
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.form-header p {
  color: #4a4a4ae6;
  font-size: 1.125rem;
  max-width: 400px;
  font-family: "Roboto";
  text-transform: uppercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  width: 100%;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "Roboto";
  color: #333;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #008f39;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
  color: var(--placeholder-color);
  font-family: "Roboto";
}

.contact-form button {
  background-color: #008f39;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  font-family: "Baloo Bhai 2";
}

.contact-form button:hover {
  background-color: #007830;
  transform: translateY(-1px);
}

.contact-form button:active {
  transform: translateY(0);
}

/* Loading state */
.contact-form button.loading {
  position: relative;
  color: transparent;
}

.contact-form button.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Container for the map */
.map-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 400px;
  margin: 0 auto 1.5rem auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.map-header {
  margin-bottom: 2rem;
}

.map-header h1 {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.2;
  font-family: "Baloo Bhai 2";
  text-transform: uppercase;
  color: #333;
}

.map-header p {
  color: #4a4a4ae6;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-family: "Roboto";
  text-transform: uppercase;
}

/* Styling the iframe for the map */
.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  z-index: 1; /* Ensures iframe stays above the decorative border */
}

/* Decorative border or overlay */
.decorative-border {
  position: absolute;
  inset: 0; /* Cover the entire container */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none; /* Allows full interaction with the iframe */
  z-index: 2; /* Sits above the iframe */
  border-radius: 15px; /* Matches container’s border radius */
}

.get-direction {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
}

.getDirection {
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  text-decoration: none;
}

.getDirection span {
  padding-bottom: 7px;
  letter-spacing: 4px;
  font-size: 14px;
  padding-right: 15px;
  text-transform: uppercase;
  font-family: "Baloo Bhai 2";
}

.getDirection svg {
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.getDirection:hover svg {
  transform: translateX(0);
}

.getDirection:active svg {
  transform: scale(0.9);
}

.hover-underline-animation {
  position: relative;
  color: black;
  padding-bottom: 20px;
}

.hover-underline-animation:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000000;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.getDirection:hover .hover-underline-animation:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@media (min-width: 972px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-header {
    text-align: center;
    padding-top: 1rem;
  }

  .form-header p {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  body {
    padding: 1rem;
  }

  .hero h1,
  .form-header h1,
  .map-header h1 {
    font-size: 1.75rem;
  }

  .hero .subtitle,
  .form-header p,
  .map-header p,
  .card-text {
    font-size: 0.8rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}
