/* Contact form (mybest-style) */
.contact-form-styled {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  padding: 0;
  border-radius: 16px;
  box-shadow: none;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

.contact-form-styled .cf-field {
  margin-bottom: 24px;
}
.contact-form-styled .cf-field p {
  margin: 0;
}

.contact-form-styled .cf-label {
  font-size: 14px;
  font-weight: 400;
  color: #444;
  margin: 0 0 8px;
  line-height: 1.5;
}
.contact-form-styled .cf-req {
  color: #e11d48;
  font-weight: 700;
  margin: 0 0 0 4px;
  order: 2;
}

/* inputs */
.contact-form-styled input[type='text'],
.contact-form-styled input[type='email'],
.contact-form-styled input[type='tel'],
.contact-form-styled select,
.contact-form-styled textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f3f4f6;
  color: #222;
  box-sizing: border-box;
  outline: none;
  transition: box-shadow .15s ease, background .15s ease, border-color .15s ease;
  font-family: inherit;
}
.contact-form-styled input[type='text']:focus,
.contact-form-styled input[type='email']:focus,
.contact-form-styled input[type='tel']:focus,
.contact-form-styled select:focus,
.contact-form-styled textarea:focus {
  background: #fff;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.contact-form-styled input::placeholder,
.contact-form-styled textarea::placeholder {
  color: #c0c4cb;
}

/* select */
.contact-form-styled select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* textarea */
.contact-form-styled textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

/* acceptance / checkbox */
.contact-form-styled .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.contact-form-styled .wpcf7-acceptance label {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #444;
}
.contact-form-styled .wpcf7-acceptance input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #10b981;
  cursor: pointer;
}
.contact-form-styled .wpcf7-acceptance a {
  color: #10b981;
  text-decoration: none;
}
.contact-form-styled .wpcf7-acceptance a:hover {
  text-decoration: underline;
}

/* submit */
.contact-form-styled .cf-submit {
  margin-top: 40px;
  text-align: center;
}
.contact-form-styled .cf-submit p {
  margin: 0;
}
.contact-form-styled .cf-submit input[type='submit'] {
  display: block;
  width: 100%;
  background: #10b981;
  color: #fff;
  border: none;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s ease;
  letter-spacing: 0.05em;
  font-family: inherit;
}
.contact-form-styled .cf-submit input[type='submit']:hover {
  background: #059669;
}
.contact-form-styled .cf-submit input[type='submit']:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* validation / response */
.contact-form-styled .wpcf7-not-valid-tip {
  color: #e11d48;
  font-size: 12px;
  margin-top: 6px;
  display: block;
}
.contact-form-styled .wpcf7-response-output {
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 20px;
}

/* spinner positioning */
.contact-form-styled .wpcf7-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

/* mobile */
@media (max-width: 768px) {
  .contact-form-styled {
    padding: 0;
    margin: 0;
    border-radius: 12px;
  }
  .contact-form-styled .cf-submit input[type='submit'] {
    padding: 14px 0;
    font-size: 15px;
  }
}
