body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
}

.contact-section {
  background-color: #ffffff;
  padding: clamp(40px, 6vw, 60px) clamp(5vw, 6vw, 80px);
  margin-bottom: 40px;
  text-align: center;
  z-index: 100;
}

.contact-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: bold;
  margin-bottom: clamp(30px, 5vw, 55px);
  position: relative;
}

.contact-title::after {
  content: "";
  display: block;
  width: 85px;
  height: 8px;
  background-color: #0054a7;
  margin: 10px auto 0;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.contact-wrapper {
  background-color: #f4f1ed;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 8rem) clamp(1.5rem, 8vw, 10rem);
  outline: 0.5px solid #9e9d9d;
  outline-offset: -0.5px;
  box-sizing: border-box;
}

.contact-note,
.contact-warning,
.contact-privacy {
  text-align: center;
  margin-bottom: 0;
  font-size: clamp(1rem, 2.5vw, 1.0rem);
  line-height: 2.5;
}

.contact-note {
  font-weight: bold;
}

.contact-warning {
  font-weight: bold;
  color: #cc0000;
  margin-top: 0;
}

.required-box {
  background-color: #cc0000;
  color: white;
  font-size: 0.9rem;
  padding: 2px 16px;
  margin-left: 5px;
}

.contact-privacy {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.contact-privacy a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #9f9d9b;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease, transform 0.1s ease, opacity 0.1s ease;
  display: inline-block;
}

.contact-privacy a:hover {
  color: #0054a7;
  text-decoration-color: #0054a7;
  font-weight: 550;
  cursor: pointer;
}

.contact-privacy a:active {
  transform: scale(0.97);
  opacity: 0.85;
}

.contact-privacy a:visited {
  color: inherit;
}

.contact-table input,
.contact-table textarea {
  font-family: inherit;
}

.contact-table {
  width: 100%;
  max-width: 880px;
  border-collapse: collapse;
  margin-top: 30px;
}

.contact-table th {
  text-align: left;
  vertical-align: middle;
  padding: clamp(16px, 4vw, 28px) clamp(10px, 4vw, 30px);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: bold;
  white-space: nowrap;
  width: 140px;
}

.contact-table th.th-top {
  vertical-align: top;
  padding-top: 40px;
}

.contact-table td {
  padding: clamp(16px, 4vw, 28px) clamp(8px, 3vw, 10px);
}

::placeholder {
  color: #c2cfd5;
  font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-table input[type="text"],
.contact-table input[type="email"],
.contact-table textarea {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border: 1px solid transparent;
}

.contact-table textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-table input[type="text"]:hover,
.contact-table input[type="email"]:hover,
.contact-table textarea:hover {
  background-color: #f8f8f8;
  border: 1px solid #999;
  transition: 0.2s ease;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.contact-table input[type="text"]:focus,
.contact-table input[type="email"]:focus,
.contact-table textarea:focus {
  border: 1px solid #0054a7;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 84, 167, 0.3);
}

.error {
  color: red;
  text-align: left;
  font-size: 1.0em;
  margin-top: 4px;
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

.form-submit button {
  background-color: #ffffff;
  padding: clamp(12px, 3vw, 18px) clamp(40px, 12vw, 82px);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.95rem, 2vw, 1rem);
  font-weight: bold;
  color: #333;
  border: none;
  cursor: pointer;
  border: 1px solid #ccc;
  box-shadow: 4px 5px 4px rgba(0, 0, 0, 0.2);
}

.form-submit button:hover {
  background-color: #d0ecff;
}

.message-box {
  text-align: center;
  margin-top: 30px;
}

.message-text {
  font-weight: bold;
  font-size: 1rem;
}

.access-section {
  background-color: #f4f1ed;
  padding: 100px 20px;
  text-align: center;
}

.access-title {
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  margin: 10px 0;
}

.access-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 8px;
  background-color: #0054a7;
  margin: 10px auto 0;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.access-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 30px;
}

.access-map iframe {
  border: 0;
  box-shadow: 6px 5px 4px rgba(0, 0, 0, 0.14);
}

.access-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin-top: 30px;
}

.access-table th,
.access-table td {
  font-size: 15px;
  padding: 12px 16px;
  border-bottom: 3px solid #f4f1ed;
}

.access-table th {
  background-color: #0054a7;
  color: white;
  width: 100px;

  font-weight: normal;
  text-align: center;
}

.access-table td {
  background-color: #f9f9f9;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .contact-title::after {
    width: 75px;
    height: 7px;
  }

  .contact-wrapper {
    padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 6vw, 3rem);
  }

  .contact-note,
  .contact-warning,
  .contact-privacy {
    text-align: center;
    line-height: 2.2;
  }

  .contact-privacy {
    margin-top: 3rem;
    margin-bottom: 0;
  }

  .contact-table {
    width: 100%;
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-table th,
  .contact-table td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .contact-table th,
  .contact-table th.th-top {
    padding-top: 30px;
  }

  .contact-table input[type="text"],
  .contact-table input[type="email"],
  .contact-table textarea {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
  }

  .form-submit button {
    width: 25%;
    padding: 16px 0;
  }
}


@media (max-width: 768px) {

  .contact-note {
    text-align: left;
  }

  .contact-privacy {
    margin-bottom: 1rem;
  }
}


@media (max-width: 480px) {
  .contact-title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }

  .contact-title::after {
    width: 65px;
    height: 6px;
  }

  .contact-wrapper {
    padding: clamp(2.5rem, 4.5vw, 3.5rem) clamp(1rem, 6vw, 1.5rem);
  }

  .contact-note,
  .contact-warning,
  .contact-privacy {
    line-height: 2.0;
  }

  .contact-note,
  .contact-warning {
    font-size: clamp(0.8rem, 3.8vw, 1.2rem);
  }

  .contact-note {
    margin-top: 0;
  }

  .contact-warning {
    text-align: left;
  }

  .required-box {
    font-size: 0.75rem;
    padding: 1px 12px;
    margin-left: 0;
  }

  .contact-privacy {
    font-size: clamp(0.6rem, 3.6vw, 1.0rem);
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .contact-table th,
  .contact-table th.th-top {
    padding-top: 25px;
  }

  .contact-table th {
    padding: 20px 0 0;
  }

  .contact-table input[type="text"],
  .contact-table input[type="email"],
  .contact-table textarea {
    padding: 12px;
  }

  .form-submit {
    margin-top: 30px;
  }

  .form-submit button {
    width: 60%;
    font-size: 1rem;
    padding: 14px 0;
    margin-bottom: 10px;
  }
}