/* Google Review Tool - Frontend Form */
.grt-form-wrap {
  font-family: 'Hiragino Kaku Gothic ProN','Hiragino Sans','Meiryo',sans-serif;
  max-width: 540px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  overflow: hidden;
  margin: 0 auto;
}
.grt-progress { display: flex; height: 4px; }
.grt-progress-step { flex: 1; background: #dadce0; transition: background .3s; }
.grt-done { background: #1a73e8; }

.grt-step { display: none; padding: 28px 32px; }
.grt-step-active { display: block; }

.grt-field { margin-bottom: 20px; }
.grt-field label { display: block; font-size: 13px; font-weight: 600; color: #5f6368; margin-bottom: 6px; }
.grt-req { color: #ea4335; margin-left: 2px; }

.grt-form-wrap input[type="text"],
.grt-form-wrap select,
.grt-form-wrap textarea {
  width: 100%; border: 1px solid #dadce0; border-radius: 8px;
  padding: 10px 14px; font-size: 14px; font-family: inherit; color: #202124;
  background: #fff; transition: border-color .15s, box-shadow .15s; outline: none; box-sizing: border-box;
}
.grt-form-wrap input[type="text"]:focus,
.grt-form-wrap select:focus,
.grt-form-wrap textarea:focus {
  border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}
.grt-form-wrap textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

/* Star rating */
.grt-stars { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.grt-stars input[type="radio"] { display: none; }
.grt-stars label { font-size: 34px; cursor: pointer; color: #dadce0; transition: color .1s; line-height: 1; }
.grt-stars input:checked ~ label,
.grt-stars label:hover,
.grt-stars label:hover ~ label { color: #fbbc04; }
.grt-star-label { font-size: 13px; color: #5f6368; margin-top: 6px; min-height: 18px; }

.grt-err { font-size: 12px; color: #ea4335; margin-top: 4px; min-height: 16px; }

/* Submit button */
.grt-submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; border: none; border-radius: 8px; background: #1a73e8; color: #fff;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; padding: 13px;
  transition: background .15s;
}
.grt-submit-btn:hover { background: #1557b0; }
.grt-submit-btn:disabled { background: #a8c7fa; cursor: not-allowed; }

/* Step 2 */
.grt-success-box { text-align: center; padding: 8px 0 16px; }
.grt-check-icon {
  width: 64px; height: 64px; background: #e6f4ea; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.grt-success-box h3 { font-size: 18px; margin-bottom: 8px; color: #202124; }
.grt-success-box p { font-size: 13px; color: #5f6368; line-height: 1.7; margin-bottom: 0; }

.grt-review-preview {
  background: #f8f9fa; border: 1px solid #dadce0; border-radius: 8px;
  padding: 14px 16px; font-size: 13px; line-height: 1.7; margin: 16px 0;
}
.grt-review-preview .grt-prev-stars { color: #fbbc04; font-size: 18px; margin-bottom: 4px; }
.grt-review-preview .grt-prev-meta  { color: #5f6368; font-size: 12px; margin-bottom: 6px; }
.grt-review-preview .grt-prev-body  { color: #202124; white-space: pre-wrap; word-break: break-word; }

.grt-hint {
  font-size: 12px; color: #5f6368; line-height: 1.7; margin-bottom: 16px;
  background: #fff8e1; border-left: 3px solid #fbbc04; padding: 10px 12px; border-radius: 0 4px 4px 0;
}

.grt-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: 1px solid #dadce0; border-radius: 8px; background: #fff; color: #202124;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; padding: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12); transition: background .15s;
}
.grt-google-btn:hover { background: #f1f3f4; }
.grt-reset-btn {
  background: transparent; color: #1a73e8; border: 1px solid #1a73e8;
  border-radius: 8px; font-size: 13px; font-family: inherit; cursor: pointer; padding: 8px 18px;
  transition: background .15s;
}
.grt-reset-btn:hover { background: rgba(26,115,232,.06); }

@media (max-width: 480px) {
  .grt-step { padding: 20px; }
  .grt-stars label { font-size: 28px; }
}

/* Copy button */
.grt-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  color: #5f6368;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 10px;
  margin-bottom: 12px;
  transition: background .15s, color .15s, border-color .15s;
}
.grt-copy-btn:hover {
  background: #f1f3f4;
  border-color: #bdc1c6;
}
.grt-copy-btn--done {
  background: #e6f4ea;
  color: #137333;
  border-color: #34a853;
}
