#contact-page {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#contact-banner {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  background: linear-gradient(135deg, #adb2d4 0%, #c7d9dd 100%);
  padding: 40px 20px;
  margin: 20px 0;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(173, 178, 212, 0.3);
  color: white;
}

#contact-banner p {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#contact-banner a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

#contact-banner a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#contact-form-container-outter {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin: 40px 0;
  align-items: flex-start;
}

#contact-form-img-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  padding: 20px;
}

#contact-form-img {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.contact-icons {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin-top: 60px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-icons a {
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 15px;
  padding: 5px;
}

.contact-icons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(173, 178, 212, 0.3);
}

.contact-icons a:active {
  transform: translateY(-2px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0px 15px;
  padding: 25px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  min-width: 140px;
}

.contact-card:hover {
  box-shadow: 0 10px 30px rgba(173, 178, 212, 0.2);
  transform: translateY(-3px);
  border-color: #adb2d4;
}

.contact-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.contact-card:hover img {
  transform: scale(1.1);
}

.contact-card p {
  margin: 0;
  text-decoration: none;
  color: #4f4f4f;
  font-weight: bold;
  font-size: 1.1em;
}

/* .navbar a {
  font-size: 20px;
  }
  
  .navbar a:hover {
  color: white;
  font-size: 25px;
  text-decoration: underline;
  text-shadow: 0px 0px 10px white;
  }
  
  .navbar a.active {
    transform: translateY(2px);
    } */

#phone-number,
#email {
  font-size: 20px;
}

#contact-form-container-inner {
  width: 50%;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
}

#contact-form-container-inner h2 {
  margin-bottom: 30px;
  font-size: 1.5em;
  color: #333;
  font-weight: bold;
}

#contact-form-container-inner form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: bold;
  color: #4f4f4f;
  font-size: 1.1em;
}

.form-group input,
.form-group textarea {
  padding: 15px 20px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 1em;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #adb2d4;
  background: white;
  box-shadow: 0 0 0 3px rgba(173, 178, 212, 0.1);
  transform: translateY(-1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 15px 30px;
  background: linear-gradient(135deg, #adb2d4 0%, #c7d9dd 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(173, 178, 212, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline;
}

.htmx-request .submit-btn span:not(.htmx-indicator) {
  display: none;
}

#form-response {
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
}

#form-response.success-message {
  background: #d5e5d5;
  color: #2d5a2d;
  border: 1px solid #a8d4a8;
}

#form-response.error-message {
  background: #ffe6e6;
  color: #d63031;
  border: 1px solid #ff9999;
}

@media only screen and (max-width: 1200px) {
  #contact-banner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  #contact-form-container-outter {
    flex-direction: column;
    gap: 30px;
  }

  #contact-form-img-container,
  #contact-form-container-inner {
    width: 100%;
  }

  #contact-form-container-inner {
    padding: 30px;
  }

  .contact-icons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .contact-card {
    margin: 10px 0;
    width: 80%;
    max-width: 300px;
  }
}

/* Checkbox: privacy agreement */
/* Lay the checkbox and its label on one line and align nicely */
.form-group:has(> input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

/* Custom checkbox look to match inputs */
.form-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  background: #fafafa;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 0 rgba(173, 178, 212, 0);
}

.form-group input[type="checkbox"]:hover {
  border-color: #d7d7d7;
  background: #ffffff;
}

.form-group input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: #adb2d4;
  box-shadow: 0 0 0 3px rgba(173, 178, 212, 0.12);
}

/* The inner fill when checked */
.form-group input[type="checkbox"]::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: scale(0);
  transition: transform 0.18s ease-in-out;
  background: linear-gradient(135deg, #adb2d4 0%, #c7d9dd 100%);
}

.form-group input[type="checkbox"]:checked {
  border-color: #adb2d4;
  background: #ffffff;
}

.form-group input[type="checkbox"]:checked::after {
  transform: scale(1);
}

/* Label and link next to the checkbox */
.form-group input[type="checkbox"] + label {
  cursor: pointer;
  font-weight: 500;
  color: #4f4f4f;
}

.form-group input[type="checkbox"] + label a {
  color: #556070;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.form-group input[type="checkbox"] + label a:hover {
  color: #adb2d4;
}
