.contact-top {
  text-align: center;
  padding: 40px 0 10px;
}

.contact-top h1 {
  color: var(--primary);

  font-size: 2rem;
}

.contact-top p {
  color: var(--text-light);
}

.contact-details {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 25px;
  margin: 20px auto;
  max-width: 1100px;
}

.detail-box {
  width: 300px;
  height: 180px;
  background: var(--bg-card);
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--bg-body);
}

.detail-box i {
  font-size: 2.2rem;
  color: var(--secondary);

  margin-bottom: 8px;
}

.detail-box h3 {
  margin-top: 10px;
  color: var(--dark);
}

.map-section h2 {
  color: var(--primary);
  text-align: center;
}

.map-section iframe {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-top: 16px;
}

.form-section h2 {
  color: var(--primary);
  text-align: center;
  margin-top: 30px;
}

.contact-form {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 14px;
  margin-top: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--bg-body);
}

.row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.field {
  flex: 1;
  min-width: 250px;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: var(--dark);
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 14px;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: inherit;
}

textarea {
  height: 130px;
}

.submit-btn {
  background: var(--primary);

  color: white;
  padding: 12px 25px;
  border-radius: 50px;

  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 220px;
  display: block;
  margin: 20px auto 0 auto;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  width: 300px;
  box-shadow: var(--shadow-lg);
}

.popup-content h2 {
  color: var(--secondary);
}

.popup-content button {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
}


@media (max-width: 900px) {
  .contact-details {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .detail-box {
    width: 100%;
    height: auto;
  }

  .row {
    flex-direction: column;
    gap: 16px;
  }

  .field {
    min-width: 100%;
  }

  .map-section iframe {
    height: 260px;
  }
}