@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

/* General Styles */
body {
  font-family: "Work Sans";
  background-color: #232323;
  color: white;
  margin: 0;
  padding: 0;
}

/* Container */
.contact-Container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12.5rem 15rem 0rem 15rem;
  gap: 5.25rem;
  max-width: 1920px;
  margin: 0 auto;
}

.contact {
  position: relative; /* Required for ::after */
  width: 100%;
  padding: 1.875rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1.138rem);
  border: none; /* Remove default border */
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 3px; /* Border thickness */
  background: linear-gradient(
    -125deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

#header1 {
  font-family: "Oswald", sans-serif;
  text-align: center;
  font-size: 4rem;
  font-weight: 500;
  position: relative;
  margin: 0;
}

#contact-Header {
  font-family: "Oswald", sans-serif;
  text-align: center;
  font-size: 4rem;
  font-weight: 500;
  position: relative;
  margin: 0;
}

#contact-Span::after {
  content: "";
  position: absolute;
  bottom: 0.45rem;
  transform: translateX(-89.5%);
  width: 19rem; /* 400px */
  height: 0.3125rem; /* 5px */
  background: linear-gradient(
    90deg,
    #e51e27 -1.08%,
    rgba(229, 30, 39, 0) 96.83%
  );
}

.h1-span-contact::after {
  content: "";
  position: absolute;
  bottom: 0.45rem;
  transform: translateX(-89.5%);
  width: 19rem; /* 400px */
  height: 0.3125rem; /* 5px */
  background: linear-gradient(
    90deg,
    #e51e27 -1.08%,
    rgba(229, 30, 39, 0) 96.83%
  );
}

.form-row {
  display: flex;
  gap: 1.25rem;
}

.form-col {
  flex: 1;
}

.form-group {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
}

label {
  font-family: "Work Sans";
  display: block;
  margin-bottom: 0.313rem;
  font-size: 0.875rem;
  color: #fff;
}

input,
textarea {
  font-family: "Work Sans";
  width: 95%;
  padding: 0.625rem;
  background-color: transparent;
  border: none;
  border-bottom: 0.063rem solid #fff;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

textarea {
  resize: none;
  width: 97.5%;
  min-height: 6.25rem;
  border-bottom: 0.063rem solid #fff;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: "▼";
  font-size: 0.75rem;
  color: white;
  position: absolute;
  right: 0.938rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* Prevent clicking the icon */
}

select {
  font-family: "Work Sans";
  width: 99%;
  height: 2.5rem; /* Ensure same height as input */
  padding: 0.625rem;
  background-color: transparent;
  border: none;
  border-bottom: 0.063rem solid #fff; /* Same as input */
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  appearance: none; /* Remove browser styling */
}

input:focus,
select:focus,
textarea:focus {
  border-bottom: 0.15rem solid #fff;
  caret-color: #e51e27;
}

input:hover,
textarea:hover,
select:hover {
  border-bottom: 0.15rem solid #fff;
  outline: none;
}

option {
  background-color: #333; /* Background of options */
  color: white; /* Text color */
}

button {
  display: block;
  width: 100%;
  max-width: 12.5rem;
  margin: 1.875rem auto 0;
  padding: 0.938rem 0;
  background-color: #c53030;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background-color: #b02a2a;
  transform: scale(1.05);
}

/* Other Contacts */
.other-contacts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 5rem 0;
}

.other-contacts h2 {
  font-family: "Oswald";
  text-align: center;
  margin-bottom: 1.875rem;
  font-size: 2rem;
  font-weight: 300;
  position: relative;
}

.other-contacts h2::after {
  display: none;
}

.row-OtherContacts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 13.75rem;
  padding: 0.938rem 0;
  background-color: #c53030;
  color: white;
  text-decoration: none;
  font-family: "Work Sans";
  border-radius: 0.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.contact-btn:hover {
  background-color: #b02a2a;
  transform: scale(1.05);
}

.contact-btn i {
  font-size: 1.5rem;
}

.office-section {
  display: flex;
  flex-direction: column;
  padding: 0 18rem;
  max-width: 1920px;
  margin: 0 auto;
}

.office-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.office-info {
  color: white;
  max-width: 50%;
}

.office-info i {
  font-size: 2rem;
  margin-right: 0.5rem;
}

.office-info h2 {
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  color: var(--White, #fff);
}

.office-info p {
  padding-left: 2rem;
  margin: 0;
  color: var(--White, #fff);
  font-family: "Work Sans";
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.open-hours {
  position: relative; /* Required for ::after */
  font-family: "Work Sans", sans-serif;
  color: #ffffff;
  width: auto;
  height: 23rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1.138rem);
  margin-top: 1.25rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none; /* Remove default border */
}

.open-hours::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 3px; /* Border thickness */
  background: linear-gradient(
    -125deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

.hours-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  padding: 0.313rem 0;
  margin: 0 0 1rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
}

.hours-list li.today {
  font-weight: bold;
  color: #ffffff;
}

.status {
  font-family: "Work Sans";
  font-size: 1.35rem;
  font-style: normal;
  font-weight: 500;
  color: #fff;
  padding: 0.625rem;
  border-radius: 0.313rem;
  text-align: center;
  line-height: normal;
  width: 15rem;
}

.status.open {
  background-color: #1db45ab2; /* Green */
}

.status.closed {
  background-color: #e51e27b2; /* Red */
}

.office-map iframe {
  margin-top: 4.5rem;
  border-radius: 1rem;
  box-shadow: 0rem -0.063rem 1.5rem 0rem rgba(255, 255, 255, 0.75);
}

#blurLogo-Office {
  position: absolute;
  width: 55.625rem;
  height: 33.75rem;
  top: 90rem;
  left: 0rem;
  filter: blur(6.25rem);
  z-index: -999;
}

/* Custom Alert Styles */
.custom-alert {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-5rem);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  max-width: 25rem;
  z-index: 1000;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  font-size: 1rem;
  gap: 0.5rem;
}

.custom-alert.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.custom-alert-success {
  background-color: #e8f0fe;
  color: #4285f4;
  border: #4285f4 0.1rem solid;
}

.custom-alert-error {
  background-color: #fcd6d3;
  color: #f44336;
  border: #f44336 0.1rem solid;
}

.custom-alert-warning {
  background-color: #f8e5c9;
  color: #ff9800;
  border: #ff9800 0.1rem solid;
}

.custom-alert-icon {
  font-size: 1.5rem;
}

.custom-alert-message {
  flex-grow: 1;
  text-align: center;
}

.custom-alert-close {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0;
}

/* Responsive */
@media screen and (max-width: 1440px) {
  .contact-Container {
    padding: 12.5rem 10rem 0rem 10rem;
  }

  .row-OtherContacts {
    gap: 15rem;
  }

  .office-section {
    padding: 0 11rem;
  }

  .office-info {
    max-width: 60%;
  }
}

@media screen and (max-width: 1200px) {
  .contact-Container {
    padding: 10rem 10rem 0rem 10rem;
  }

  .other-contacts {
    margin: 3rem 0;
  }

  .row-OtherContacts {
    gap: 5rem;
  }

  .row-OtherContacts .contact-btn {
    width: 10rem;
    font-size: 1.25rem;
  }

  .office-section {
    padding: 0 5.5rem;
  }

  .office-info {
    max-width: 70%;
  }

  .office-info i {
    font-size: 1.75rem;
  }

  .office-info h2 {
    font-size: 1.5rem;
  }

  .office-info p {
    font-size: 1rem;
  }

  .status {
    font-size: 1.25rem;
    width: 12rem;
  }

  .office-map iframe {
    margin-top: 8.5rem;
    width: 30rem;
    height: 25rem;
  }
}

@media screen and (max-width: 992px) {
  .other-contacts {
    margin: 2rem 0;
  }

  .row-OtherContacts {
    gap: 8rem;
  }

  .row-OtherContacts .contact-btn {
    width: 8rem;
    font-size: 1rem;
  }

  .office-section {
    padding: 0 3.5rem;
  }

  .office-info {
    max-width: 80%;
  }

  .office-info i {
    font-size: 1.5rem;
  }

  .office-info h2 {
    font-size: 1.25rem;
  }

  .office-info p {
    font-size: 0.938rem;
  }

  .status {
    font-size: 1rem;
    width: 10rem;
  }

  .office-container {
    padding-top: 3rem;
    flex-direction: column;
    gap: 1rem;
  }

  .office-map iframe {
    margin-top: 2.75rem;
    width: 30rem;
    height: 30rem;
  }
}

@media screen and (max-width: 768px) {
  .contact-Container {
    padding: 7.5rem 5rem 0rem 5rem;
  }
  #header1 {
    font-size: 3rem;
  }

  #contact-Header {
    font-size: 3rem;
  }

  #contact-Span::after {
    content: "";
    position: absolute;
    bottom: 0.45rem;
    transform: translateX(-89.5%);
    width: 14rem;
    height: 0.3125rem;
    background: linear-gradient(
      90deg,
      #e51e27 -1.08%,
      rgba(229, 30, 39, 0) 96.83%
    );
  }

  #blurLogo-Office {
    width: 35rem;
    height: 27.5rem;
    top: 50rem;
  }

  .h1-span-contact::after {
    width: 14.25rem;
    top: 3.75rem;
  }

  .other-contacts {
    margin: 2rem 0;
  }

  .row-OtherContacts {
    gap: 8rem;
  }

  .row-OtherContacts .contact-btn {
    width: 8rem;
    font-size: 1rem;
  }

  .office-section {
    padding: 0 3.5rem;
  }

  .office-info {
    max-width: 80%;
  }

  .office-info i {
    font-size: 1.5rem;
  }

  .office-info h2 {
    font-size: 1.25rem;
  }

  .office-info p {
    font-size: 0.938rem;
  }

  .open-hours {
    width: auto;
    height: auto;
  }

  .status {
    font-size: 1rem;
    width: 10rem;
  }

  .office-map iframe {
    margin-top: 12rem;
    width: 20rem;
    height: 20rem;
  }
}

/* Responsive Styles for max-width: 425px */
@media screen and (max-width: 480px) {
  #header1 {
    font-size: 2.5rem; /* Reduce header size for smaller screens */
  }

  #contact-Header {
    font-size: 2.25rem;
  }

  #contact-Span::after {
    content: "";
    position: absolute;
    bottom: 0.15rem;
    transform: translateX(-88.5%);
    width: 10.75rem;
    height: 0.3125rem;
    background: linear-gradient(
      90deg,
      #e51e27 -1.08%,
      rgba(229, 30, 39, 0) 96.83%
    );
  }

  #blurLogo-Office {
    width: 25rem; /* Adjust width for smaller screens */
    height: 15rem; /* Adjust height for smaller screens */
    top: 80rem; /* Adjust top position for smaller screens */
    left: -10rem;
  }

  .h1-span-contact::after {
    width: 11.75rem; /* Adjust width for smaller screens */
    top: 3.5rem; /* Adjust top position for smaller screens */
  }

  .contact {
    width: 90%; /* Adjust width to fit smaller screens */
    padding: 1rem; /* Reduce padding */
  }

  .form-row {
    flex-direction: column; /* Stack inputs vertically */
  }

  .form-col {
    width: 100%; /* Full width for better fit */
  }

  .form-group label {
    font-size: 0.9rem; /* Adjust label font size */
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 1rem; /* Adjust input font size */
    padding: 0.6rem; /* Reduce padding for compact look */
  }

  button[type="submit"] {
    font-size: 1rem; /* Adjust button font size */
    padding: 0.7rem; /* Adjust padding */
    width: 100%; /* Full width button for easier tap */
  }

  .contact-Container {
    padding: 5.5rem 1rem; /* Adjust padding for smaller screens */
  }

  .contact-Container h1 {
    font-size: 1.8rem; /* Reduce header size for smaller screens */
    text-align: center;
  }

  .other-contacts {
    margin: 0 0 2.5rem; /* Adjust margin for smaller screens */
  }

  .row-OtherContacts {
    flex-direction: column;
    gap: 2rem; /* Adjust gap between buttons */
  }

  .row-OtherContacts .contact-btn {
    width: 10rem;
    font-size: 1rem;
  }

  .office-container {
    flex-direction: column;
    gap: 1rem;
  }

  .office-info {
    max-width: 100%;
  }

  .office-info i {
    font-size: 1.5rem;
  }

  .office-map iframe {
    margin-top: 2rem;
    width: 20rem;
    height: 20rem;
  }
}
