/* LIFF 要望送信フォーム / モバイル前提 */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #FFFFFF;
  color: #1E1E1E;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.header h1 {
  font-size: 22px;
  margin: 0 0 4px;
  color: #06C755;
}

.header .subtitle {
  font-size: 13px;
  color: #666;
  margin: 0 0 24px;
}

.form .field {
  margin-bottom: 20px;
}

.form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form select,
.form textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #D0D0D0;
  border-radius: 8px;
  background: #FAFAFA;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%231E1E1E' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  padding-right: 36px;
}

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

.form select:focus,
.form textarea:focus {
  border-color: #06C755;
  background: #FFFFFF;
}

.hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #888;
  text-align: right;
}

.btn-primary {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  background: #06C755;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:disabled {
  background: #BFE5C9;
  cursor: not-allowed;
}

.btn-primary:active:not(:disabled) {
  background: #05A547;
}

.status {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
}

.status-text {
  margin: 0;
  font-size: 14px;
}

.status-loading {
  background: #F4F4F4;
  color: #555;
}
.status-loading .status-icon {
  border: 3px solid #DDD;
  border-top-color: #06C755;
  animation: spin 0.8s linear infinite;
  background: transparent;
  border-radius: 50%;
}

.status-success {
  background: #E8F8EE;
  color: #056A2C;
}
.status-success .status-icon {
  background: #06C755;
  position: relative;
}
.status-success .status-icon::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(45deg);
}

.status-error {
  background: #FDECEE;
  color: #B71C1C;
}
.status-error .status-icon {
  background: #E53935;
  position: relative;
}
.status-error .status-icon::before,
.status-error .status-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 2px;
  height: 12px;
  background: #FFFFFF;
}
.status-error .status-icon::before { transform: rotate(45deg); }
.status-error .status-icon::after  { transform: rotate(-45deg); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.help {
  margin-top: 32px;
  padding: 12px 14px;
  background: #F8F8F8;
  border-radius: 8px;
}

.help summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.help ul {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 13px;
  color: #555;
}

.help li {
  margin-bottom: 6px;
}
