/* ===== Contact Page Wrapper ===== */
.contact-page {
  background: #ffffff;
  padding: 40px 32px;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  color: #222;
  font-family: inherit;
}

/* ===== Labels ===== */
.contact-page label {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  display: block;
  margin-bottom: 6px;
  max-width: 100%;
}

/* ===== Inputs, Select, Textarea ===== */
.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page select,
.contact-page textarea {
  width: 100%;
  background: #fafafa;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 12px 14px;
  color: #222;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Placeholder text */
.contact-page input::placeholder,
.contact-page textarea::placeholder {
  color: #98a2b3;
}

/* Focus state */
.contact-page input:focus,
.contact-page select:focus,
.contact-page textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  background: #ffffff;
}

/* ===== Select dropdown arrow ===== */
.contact-page select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667eea' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* ===== Textarea ===== */
.contact-page textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== Field spacing ===== */
.contact-page p {
  margin-bottom: 20px;
}

/* ===== Submit Button ===== */
.contact-page input[type="submit"] {
  width: 100%;
  background: #4f46e5;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

/* Hover & active states */
.contact-page input[type="submit"]:hover {
  background: #4338ca;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
}

.contact-page input[type="submit"]:active {
  transform: translateY(1px);
}

/* ===== Spinner ===== */
.contact-page .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

/* ===== Validation / Messages ===== */
.contact-page .wpcf7-not-valid-tip {
  color: #d92d20;
  font-size: 13px;
  margin-top: 6px;
}

.contact-page .wpcf7-response-output {
  border: none;
  margin-top: 20px;
  padding: 0;
  font-size: 14px;
}
/* === CF7 width overflow fix === */
.contact-page .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin-top: 5px;
}

.contact-page .wpcf7-form-control {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
