/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: 'Poppins', sans-serif;
  background: #fafbfc;
  min-height: 100vh;
}

main {
  display: flex;
  flex-direction: column;
}

/* Contact Section */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px 25px;
  background: #fff;
  align-items: stretch;
}

.contact-form,
.map {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  flex: 1 1 350px;
  padding: 24px;
  max-width: 500px;
}

.contact-section .map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

.contact-form h2 {
  color: #f47400;
  margin-bottom: 10px;
}

.contact-form p {
  font-size: 14px;
  color: #444;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 96%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  background: #f47400;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
}

.map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 8px;
}

/* Footer Styles */
.custom-footer {
  position: relative;
  width: 100%;
  background: url('../upload/4.webp') center center/cover no-repeat, #222;
  color: #fff;
  padding: 3rem 0 1rem 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin-top: 0;
  overflow: hidden;
  z-index: 1;
}

.custom-footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.custom-footer a:hover,
.custom-footer a:focus {
  color: #f47400;
  text-decoration: none;
  outline: none;
}

/* Overlay to reduce background image brightness */
.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 26, 32, 0.6);
  /* Adjust opacity here (0.1 to 0.9) */
  pointer-events: none;
  z-index: 1;
}

.footer-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 2;
  /* Above overlay */
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 210px;
  min-width: 180px;
}

.footer-brand .logo-desc {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  height: 100px;
  margin-bottom: -0.4rem;
}

.footer-social {
  margin-top: 0.5em;
}

.footer-social a {
  color: #fff;
  background: #f47400;
  display: inline-block;
  margin: 0 0.2em 0 0;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  font-size: 1.2em;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: #fff;
  color: #f47400;
}

.footer-col h4 {
  margin: 0 0 0.6em 0;
  font-size: 1.15em;
  color: #f47400;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.96em;
  display: inline-block;
  padding: 0.25em 0;
  opacity: 0.95;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #f47400;
}

.footer-col p {
  font-size: 0.96em;
  margin-bottom: 0.4em;
  display: flex;
  align-items: flex-start;
}

.footer-col p i {
  margin-right: 0.7em;
  color: #f47400;
  min-width: 16px;
}

.footer-divider {
  border: none;
  border-top: 1.5px solid #ffffff7d;
  margin: 2.2em 0 1.1em 0;
  width: 100%;
}

.footer-bottom {
  text-align: center;
  color: #bbb;
  font-size: 0.9em;
  letter-spacing: 0.01em;
}
/* Flip phone icon horizontally */
.flip-phone {
  transform: scaleX(-1);
  display: inline-block; /* ensure transform applies correctly */
}

/*================== RESPONSIVE STYLES============= */

/* Extra small devices (phones, less than 600px) */
@media only screen and (max-width: 599px) {
  .contact-section {
    flex-direction: column;
    align-items: center;
    padding: 20px 10px 10px;
  }

  .contact-form,
  .map {
    max-width: 100%;
    padding: 15px;
  }

  .footer-logo img {
    height: 60px;
  }

  .footer-container {
    padding: 0 1rem;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
  .contact-section {
    flex-direction: column;
    align-items: center;
    padding: 25px 15px 15px;
  }

  .contact-form,
  .map {
    max-width: 90%;
    padding: 18px;
  }

  .footer-logo img {
    height: 70px;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .contact-section {
    flex-wrap: nowrap;
    justify-content: space-around;
    padding: 30px 20px 20px;
  }

  .contact-form,
  .map {
    max-width: 48%;
    padding: 22px;
  }

  .footer-logo img {
    height: 80px;
  }
}

/* Large devices (laptops/desktops, 1024px and up) */
@media only screen and (min-width: 1024px) and (max-width: 1279px) {
  .contact-section {
    flex-wrap: nowrap;
    justify-content: space-evenly;
    padding: 40px 40px 30px;
  }

  .contact-form,
  .map {
    max-width: 45%;
    padding: 24px;
  }

  .footer-logo img {
    height: 100px;
  }
}

/* Extra large devices (large desktops, 1280px and up) */
@media only screen and (min-width: 1280px) {
  .contact-section {
    flex-wrap: nowrap;
    justify-content: center;
    padding: 40px 50px 25px;
  }

  .contact-form,
  .map {
    max-width: 40%;
    padding: 24px;
  }

  .footer-logo img {
    height: 100px;
  }
}