/* contact us */

.wpcf7 {
  --input-bg: rgb(242, 238, 232);
  --input-border-color: #555;
  --field-pad-x: 8px;
  --field-pad-top: 22px;
  --field-pad-bottom: 6px;
  --label-rest-top: 14px;
  --label-float-top: 6px;
  --label-rest-size: 1rem;
  --label-float-size: var(--font-size-13);
  --label-bg: var(--input-bg);
  font-family: "Calibre";
}

/* Contact forms - general styling */

.wpcf7 .gprivacy {
  font-size: 0.75rem;
  margin-top: -1.5rem;
  text-align: center;
}

.wpcf7 textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="date"],
.wpcf7 input[type="password"] {
  background: var(--input-bg);
  border: 0;
  border-bottom: 1px solid var(--input-border-color, #555);
  font-size: 1rem;
  width: 100%;
  color: #000;
  font-family: "Calibre";
  padding: var(--field-pad-top) var(--field-pad-x) var(--field-pad-bottom) var(--field-pad-x);
  outline: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 input[type="password"]:focus {
  border-color: #888;
}

.wpcf7 textarea::placeholder,
.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="date"]::placeholder,
.wpcf7 input[type="password"]::placeholder {
  color: #555;
  opacity: 1;
  font-weight: normal;
  font-style: italic;
}

.wpcf7 textarea {
  border: 1px solid var(--input-border-color, #555);
  min-height: 100px;
  padding: 24px 12px 12px 12px;
}

.wpcf7 .wpcf7-not-valid {
  border-bottom: 1px solid #b50102 !important;
  font-weight: bold;
}

.wpcf7 .wpcf7-not-valid.wpcf7-checkbox {
  border: 0 !important;
  font-weight: normal;
  color: #b50102;
}

.wpcf7 .wpcf7-response-output {
  margin: 0 0 16px 0;
  padding: 8px;
  font-size: 0.875rem;
  color: #000;

  background: #f3f3f3;
}

.wpcf7 form .wpcf7-response-output {
  margin: 0;
  padding: 16px;
  border: 0;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
  background: #b50102;
  color: #fff;
}

.wpcf7 .wpcf7-display-none,
.wpcf7 .screen-reader-response,
.wpcf7 .wpcf7-not-valid-tip {
  display: none;
}

#contact-page {
  padding: 0;
  max-width: 800px;
}

.wpcf7 .captcha {
  margin: 0 0 17px 0;
}

.wpcf7 br {
  display: none;
}

.wpcf7 .form-field label {
  position: absolute;
  top: var(--label-rest-top);
  left: var(--field-pad-x);
  z-index: 1;
  font-size: var(--label-rest-size);
  color: #000;
  pointer-events: none;
  transition: all 0.1s ease-in-out;
  display: flex;
  gap: 1px;
}

.wpcf7 .form-field.text-area label {
  position: absolute;
  top: var(--label-float-top);
  left: calc(var(--field-pad-x) - 1px);
  font-size: var(--label-float-size);
  background: var(--label-bg);
  padding: 0 2px;
  height: unset;
  line-height: 1;
  z-index: 15;
}

.wpcf7 .form-field:has(input:focus) label,
.wpcf7 .form-field:has(textarea:focus) label,
.wpcf7 .form-field.has-data label {
  position: absolute;
  top: var(--label-float-top);
  left: calc(var(--field-pad-x) - 1px);
  font-size: var(--label-float-size);
  background: var(--label-bg);
  padding: 0 2px;
  height: unset;
  line-height: 1;
  z-index: 15;
}

.verify-email input[type="submit"],
.wpcf7 input[type="submit"],
.wpcf7 button {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #000;
  font-size: 1rem;
  background: #000;
  color: #fff;
  font-family: "Calibre";
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  margin: 0 0 16px 0;
  border-radius: 6px;
}

.wpcf7 input[aria-invalid="true"],
.wpcf7 select[aria-invalid="true"] {
  border-bottom: 1px solid #a75446;
  background: #f5e9e9;
  padding-left: 8px;
}

.wpcf7 .form-field:has(input[aria-invalid="true"]) label {
  background: var(--label-bg);
}

.wpcf7 .form-field:has(input[aria-invalid="true"]:focus) label {
  background: var(--label-bg);
  padding-left: 0;
  top: var(--label-float-top);
}

.wpcf7 .form-field.has-data:has(input[aria-invalid="true"]) label {
  top: var(--label-float-top);
  background: var(--label-bg);
  padding-left: 0;
}

.verify-email input[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover,
.wpcf7 button:hover {
  background: #555;
}

.wpcf7 input.cancel,
.wpcf7 input[type="reset"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #000;
  font-size: 1rem;
  background: transparent;
  color: #000;
  font-family: "Calibre";
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  margin: 0 0 16px 0;
  border-radius: 6px !important;
}

.wpcf7 input.cancel:hover,
.wpcf7 input[type="reset"]:hover {
  background: rgba(0, 0, 0, 0.1);
}

.wpcf7 label.is-checkbox {
  display: flex;
  cursor: pointer;
}

.wpcf7 .is-checkbox .text {
  padding-left: 0.5rem;
}

.wpcf7 .is-checkbox .icon .on {
  display: none;
}

.wpcf7 .checkbox:checked + label .icon .off {
  display: none;
}

.wpcf7 .checkbox:checked + label .icon .on {
  display: block;
}

.wpcf7 .form-field {
  position: relative;
  margin-bottom: 27px;
}

.wpcf7 .selectbox {
  position: relative;
  display: block;
  width: 100%;
}

.wpcf7 .selectbox label {
  font-family: "Calibre";
  position: absolute;
  top: var(--label-rest-top);
  left: var(--field-pad-x);
  pointer-events: none;
  font-size: var(--label-rest-size);
  color: #000;
  transition: all 0.1s ease-in-out;
  display: flex;
  gap: 1px;
}

.wpcf7 .selectbox:not(:has(select option:checked[value=""])) label,
.wpcf7 .selectbox:has(select:focus) label {
  top: var(--label-float-top);
  font-size: var(--label-float-size);
  background: var(--label-bg);
  padding: 0 2px;
  line-height: 1;
  z-index: 2;
}

/* The actual select */
.wpcf7 .selectbox select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;

  padding: var(--field-pad-top) calc(var(--field-pad-x) + 20px) var(--field-pad-bottom) var(--field-pad-x); /* right padding for the arrow */
  border: 0;
  border-bottom: 1px solid var(--input-border-color);
  background: var(--input-bg);
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Calibre";
  line-height: 1.2; /* optional, helps normalize height */
}

/* Remove default arrow in IE/Edge */
.wpcf7 .selectbox select::-ms-expand {
  display: none;
}

/* Custom dropdown arrow */
.wpcf7 .selectbox::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2 4 6 8 10 4'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

/* Hover and focus states */
.wpcf7 .selectbox select:hover {
  border-color: #888;
  background-color: transparent;
}

.wpcf7 .selectbox select:focus {
  outline: none;
}

/* Disabled state */
.wpcf7 .selectbox select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}
