@import url("https://fonts.googleapis.com/css2?family=Caudex:ital,wght@0,400;0,700;1,400;1,700&family=DM+Serif+Text:ital@0;1&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
}

html,
body {
  font-family: "Caudex", serif;
  height: 100%;
  background-color: #fdfdfd;
}

/* HEADER SEACTION  */

.navigation {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease-in-out;
  padding: 20px 7%;
  max-width: 100%;
}

.logo img {
  max-width: 250px;
}

nav {
  display: flex;
}

nav ul {
  display: flex;
}

.nav-links li {
  margin-right: 25px;
  font-weight: 500;
}

.nav-links a {
  color: #fff;
  text-transform: uppercase;
  font-weight: 900;
}

#menu-icon {
  font-size: 1.875rem;
  color: #fff;
  margin-left: 10px;
  z-index: 10001;
  cursor: pointer;
  display: none;
}

@media screen and (max-width: 800px) {
  /* HEADER SECTION TABLET */

  #menu-icon {
    display: initial;
  }

  .nav-links {
    position: absolute;
    top: -1000px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: #545454;
    transition: all 0.5s ease;
  }

  .nav-links a {
    display: block;
    padding: 0.5rem;
    margin: 1rem;
    color: #f1f1f1;
    font-weight: 500;
    border-left: 3px solid #f1f1f1;
  }

  .nav-links.open {
    top: 0;
  }
}

@media screen and (max-width: 430px) {
  /* HEADER SECTION MOBILE */

  .nav-icons i {
    font-size: 1rem;
  }

  .logo img {
    max-width: 180px;
  }
}

/* CONTACT SECTION */

.box {
  padding: 8% 0;
  width: 100%;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(/images/contact-info.jpg);
  background-position: center;
  background-size: cover;
}

.contact {
  padding: 2% 0;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact h2 {
  font-size: 2.5rem;
  color: #000;
  text-align: center;
  margin-top: 30px;
}

.contact h3 {
  font-size: 1rem;
  color: #545454;
  text-align: center;
  margin-bottom: 15px;
  margin-top: 15px;
}

.contact form {
  width: 100%;
  max-width: 900px;
  height: auto;
  text-align: center;
  margin: 0 auto;
}

form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.input-box .input-field {
  width: 49%;
}

.field .item {
  width: 100%;
  padding: 18px;
  background: #fdfdfd;
  border: none;
  border-bottom: 1px solid #545454;
  outline: none;
  border-radius: 3px;
  font-size: 1rem;
  margin: 5px 0;
  font-family: "Caudex", serif;
}

.field.error .item {
  border-color: red;
}

.field .item::placeholder {
  color: rgba(2, 2, 2, 0.3);
}

.field .error-text {
  font-size: 0.875rem;
  color: red;
  text-align: left;
  margin: -5px 0 10px;
  display: none;
}

.field.error .error-text {
  display: block;
}

form .textarea-field .item {
  resize: none;
}

form .textarea-field .error-text {
  margin-top: -10px;
}

.submit {
  font-size: 14px;
  font-weight: 400;
  padding: 9px 20px;
  background: #fdfdfd;
  border-radius: 50px;
  color: #545454;
  text-transform: uppercase;
  border: 1px solid #545454;
  transition: all 0.5s;
  cursor: pointer;
  font-family: "Caudex", serif;
  margin-top: 20px;
}

.submit:hover {
  background: #f1f1f1;
  color: #545454;
}

.alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f8d7da; /* Default: light red for errors */
  color: #721c24; /* Default: dark red for text */
  border: 1px solid #f5c6cb;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.alert.success {
  background-color: #d4edda; /* Light green for success */
  color: #155724; /* Dark green for success text */
  border: 1px solid #c3e6cb;
}

.alert button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 5px;
  font-family: "Caudex", serif;
  cursor: pointer;
}

.alert button:hover {
  background-color: #0056b3;
}

/* Copyright Section */
.footer {
  width: 100%;
  background: #f1f1f1;
  text-align: center;
  padding: 30px 10%;
  bottom: 0;
  height: auto;
}

.footer-contact {
  text-align: left;
}

.footer img {
  max-width: 300px;
}

.footer p {
  font-size: 13px;
  color: #545454;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
}

.footer h2 {
  text-transform: uppercase;
  color: #000;
  margin-bottom: 20px;
}

.footer button {
  padding: 7px 15px;
  background: transparent;
  border-radius: 50px;
  color: #000;
  text-transform: uppercase;
  border: 1px solid #000;
  transition: all 0.5s;
  cursor: pointer;
  font-family: "Caudex", serif;
}

.footer button:hover {
  background: #000;
  color: #f1f1f1;
}

.footer a {
  color: inherit;
}

.policy {
  display: flex;
  justify-content: center;
  font-size: 12px;
  background: #f1f1f1;
}

.policy a {
  margin: 15px 30px;
  color: #545454 !important;
}

.policy a:hover {
  color: #000 !important;
  transition: all 0.4s ease;
}

.copyright {
  background: #545454;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #f1f1f1;
  padding: 3px 0;
}

/* Media Queries for Responsive Design */

@media screen and (max-width: 1024px) {
  .contact {
    padding: 13% 0 4% 0;
  }
}

@media screen and (max-width: 800px) {
  /* Responsive adjustments for tablet */
  .contact h2 {
    font-size: 2rem;
  }

  .contact form {
    width: 70%;
  }
}

@media screen and (max-width: 768px) {
  .footer {
    padding: 20px 5%;
  }
  .footer img {
    max-width: 200px;
  }

  .footer p {
    font-size: 12px;
    line-height: 20px;
  }

  .footer h2 {
    font-size: 16px;
  }

  .footer button {
    padding: 6px 12px;
  }

  .policy {
    font-size: 10px;
  }

  .policy a {
    margin: 10px 15px;
  }

  .copyright {
    font-size: 10px;
    padding: 3px 0;
  }
}

@media screen and (max-width: 600px) {
  .contact {
    padding: 20% 0 4% 0;
  }
}

@media screen and (max-width: 480px) {
  /* Responsive adjustments for mobile */
  .contact {
    padding: 25% 0 4% 0;
  }

  .contact h2 {
    font-size: 1.3rem;
  }

  .contact h3 {
    font-size: 0.8rem;
  }

  .contact form {
    width: 80%;
  }

  .input-box .input-field {
    width: 100%;
  }

  .field .item {
    width: 100%;
    padding: 18px;
    background: #fdfdfd;
    border: none;
    border-bottom: 1px solid #545454;
    outline: none;
    border-radius: 3px;
    font-size: 0.8rem;
    margin: 5px 0;
    font-family: "Caudex", serif;
  }

  .submit {
    font-size: 12px;
    padding: 8px 16px;
    margin-bottom: 20px;
  }
}
