/* --- 1. HERO SECTION --- */
.contact-hero {
  position: relative;
  width: 100%;
  height: 450px;
  background-image: url("/assets/images/contact/5e899e83-tree_rope_1.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.contact-hero h1 {
  position: relative;
  font-family: "Playfair Display", serif;
  font-size: 4em;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 2px;
  text-align: center;
  z-index: 1;
  margin: 0;
  text-transform: uppercase;
}

/* Mobile: Hero */
@media (max-width: 768px) {
  .contact-hero {
    height: 350px;
  }
  .contact-hero h1 {
    font-size: 2.5em;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    height: 280px;
  }
  .contact-hero h1 {
    font-size: 2em;
  }
}

/* --- 2. LAYOUT & CONTAINERS --- */
.contact-container {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.contact-left-col {
  flex: 1.3;
  min-width: 300px;
}

.contact-right-col {
  flex: 1;
  min-width: 300px;
}

/* Mobile: Layout */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 40px;
    margin: 40px auto;
    padding: 0 15px;
  }
  .contact-left-col,
  .contact-right-col {
    min-width: 100%;
  }
  .contact-right-col {
    order: -1;
  }
}

@media (max-width: 480px) {
  .contact-container {
    margin: 30px auto;
  }
}

/* --- 3. TYPOGRAPHY  --- */
.page-heading {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: #000;
  margin-bottom: 40px;
  font-weight: 400;
  text-align: center;
}

.section-subheading {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #83c1e0;
  margin-bottom: 25px;
  font-weight: 400;
}

.info-text {
  font-family: "Poppins", sans-serif;
  color: #777;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: justify;
}

/* Mobile: Typography */
@media (max-width: 768px) {
  .page-heading {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }
  .section-subheading {
    font-size: 1.6rem;
  }
  .info-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-heading {
    font-size: 1.8rem;
  }
  .section-subheading {
    font-size: 1.4rem;
  }
  .info-text {
    font-size: 13px;
  }
}

/* --- 4. FORM STYLING --- */
.contact-form label {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #444;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.contact-form label span {
  color: red;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 25px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  background: #fff;
  color: #333;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.checkbox-group {
  margin-bottom: 25px;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: #555;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-group input {
  margin-right: 8px;
  width: auto;
}

.submit-btn {
  background-color: #007d75;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 2px;
  font-family: sans-serif;
}

.submit-btn:hover {
  background-color: #005a54;
}

/* Mobile: Form */
@media (max-width: 480px) {
  .contact-form label {
    font-size: 0.9rem;
  }
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="number"],
  .contact-form select,
  .contact-form textarea {
    padding: 10px 12px;
    font-size: 13px;
  }
  .contact-form textarea {
    height: 120px;
  }
  .checkbox-group {
    flex-direction: column;
    gap: 15px;
  }
  .submit-btn {
    width: 100%;
    padding: 12px 30px;
  }
}

/* --- 5. RIGHT COLUMN & ICONS --- */
.contact-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  font-family: "Playfair Display", serif;
  color: #555;
  font-size: 16px;
}

.icon-box {
  width: 30px;
  margin-right: 15px;
  text-align: center;
}

.icon-box svg {
  width: 24px;
  height: 24px;
  fill: #83c1e0;
}

/* Mobile: Icons */
@media (max-width: 768px) {
  .contact-details-list li {
    font-size: 15px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .contact-details-list li {
    font-size: 14px;
  }
  .icon-box {
    width: 25px;
  }
  .icon-box svg {
    width: 20px;
    height: 20px;
  }
}

/* --- 6. MAP SECTION --- */
.map-section {
  max-width: 1200px;
  width: 100%;
  height: 450px;
  margin: 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0%);
}

/* Mobile: Map */
@media (max-width: 768px) {
  .map-section {
    height: 350px;
    margin: 20px auto;
  }
}

@media (max-width: 480px) {
  .map-section {
    height: 300px;
    padding: 0 15px;
  }
}

/*No Refresh Part*/
 /* Modal background */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal content box */
.modal-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 80%;
    font-size: 18px;
    position: relative;
}

/* Close button */
.modal-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
}

/* Spinner */
#formLoading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
