/* ============================================================
   contact.css — お問い合わせフォーム
   ============================================================ */

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- Form Group ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group.checkbox {
  gap: 14px;
}

.form-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.required {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  margin-left: 8px;
}

/* ---------- Input & Textarea ---------- */
.form-input,
.form-select,
.form-textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 16px 20px;
  border: 2px solid #e0e6f0;
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #b0b9ca;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6fed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 48px;
}

.form-select option {
  color: var(--text-main);
  background: var(--white);
}

.form-textarea {
  resize: vertical;
  line-height: 1.6;
}

/* ---------- Checkbox ---------- */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  color: var(--text-main);
}

.checkbox-input {
  width: 24px;
  height: 24px;
  min-width: 24px;
  cursor: pointer;
  accent-color: var(--blue);
  border-radius: 4px;
  margin-top: 2px;
}

.checkbox-label span {
  line-height: 1.5;
}

/* ---------- Submit Button ---------- */
.btn-submit {
  align-self: center;
  padding: 18px 56px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-md);
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 240px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.3);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .contact-form {
    gap: 20px;
  }

  .form-label {
    font-size: 16px;
  }

  .form-input,
  .form-textarea {
    font-size: 16px;
    padding: 14px 16px;
  }

  .btn-submit {
    padding: 16px 48px;
    font-size: 16px;
    min-width: 200px;
  }

  .checkbox-label {
    font-size: 15px;
  }
}
