/* THEME COLORS */
:root {
  --primary-color: #D4A017;
  --dark-color: #bdbdbd;
  --light-bg: #949493;
  --accent-color: #B8860B;
}

/* CONTACT SECTION STYLES */
.contact-section {
  padding: 60px 20px;
  background-color: var(--light-bg);
  font-family: 'Arial', sans-serif;
}

.contact-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333 ;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #494949;
}

.contact-content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form-box,
.contact-map-box {
  flex: 1 1 400px;
  background: #333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contact-form-box h3,
.contact-map-box h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--accent-color);
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--dark-color);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-submit-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.contact-submit-btn:hover {
  background-color: #2daf0c;
}

/* Embedded map container */
.map-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio for better mobile fit */
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
  min-height: 220px;
  background: #eee;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  border-radius: 8px;
  display: block;
  max-width: 100vw;
  min-height: 220px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-content-grid {
    flex-direction: column;
    gap: 24px;
  }
  .contact-form-box,
  .contact-map-box {
    max-width: 100%;
    padding: 20px;
  }
  .map-container {
    padding-top: 60vw; /* taller map for tablets */
    min-height: 180px;
  }
}

@media (max-width: 768px) {
  .contact-content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .contact-form-box,
  .contact-map-box {
    min-width: 0;
    width: 100%;
    padding: 14px;
  }
  .map-container {
    padding-top: 70vw; /* even taller for mobile */
    min-height: 140px;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 24px 4vw;
  }
  .contact-title {
    font-size: 1.5rem;
  }
  .contact-form-box,
  .contact-map-box {
    padding: 8px;
    border-radius: 7px;
  }
  .map-container {
    padding-top: 90vw;
    min-height: 100px;
    border-radius: 7px;
  }
  .map-container iframe {
    border-radius: 7px;
  }
}

/* SUCCESS POPUP STYLES */
#contactSuccessPopup {
  position: fixed;
  z-index: 999999;
  inset: 0;
  background: rgba(24,19,10,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}

.order-success-popup-content {
  background: #fffbe6;
  border-radius: 18px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 8px 32px #18130a55;
  text-align: center;
  max-width: 90vw;
  width: 350px;
  position: relative;
  animation: popIn 0.25s cubic-bezier(.4,2,.6,1);
}

.order-success-popup-title {
  color: #b8860b;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.order-success-popup-close {
  position: absolute;
  top: 10px; right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #b8860b;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s;
}

.order-success-popup-close:hover,
.order-success-popup-close:focus {
  color: #a50000;
}
