/**
 * Verite Survey - ポップアップスタイル
 *
 * ※ フォーム自体のスタイルは別途調整想定
 */

/* ===========================================
   ポップアップ
   =========================================== */

.verite-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.verite-popup--visible {
  opacity: 1;
  visibility: visible;
}

/* オーバーレイ */
.verite-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

/* コンテンツボックス */
.verite-popup__content {
  position: relative;
  background: #fff;
  padding: 32px 24px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.verite-popup--visible .verite-popup__content {
  transform: translateY(0);
}

/* メッセージ */
.verite-popup__message {
  text-align: center;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 24px;
}

/* 感想ラベル */
.verite-popup__label {
  font-size: 14px;
  color: #666;
  margin: 0 0 8px;
  font-weight: 500;
}

/* コメント表示ボックス */
.verite-popup__comment-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 8px;
  max-height: 120px;
  overflow-y: auto;
}

.verite-popup__comment-text {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* コピーエリア */
.verite-popup__copy-area {
  text-align: right;
  margin-bottom: 20px;
}

/* コピーボタン */
.verite-popup__copy-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.verite-popup__copy-btn:hover {
  background: #eee;
  color: #333;
}

.verite-popup__copy-btn--copied {
  background: #4CAF50;
  border-color: #4CAF50;
  color: #fff;
}

/* 投稿ボタン */
.verite-popup__submit-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #4285f4, #3367d6);
  color: #fff;
  border: none;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  line-height: 1.4;
}

.verite-popup__submit-btn:hover {
  background: linear-gradient(135deg, #3367d6, #2851a3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.verite-popup__submit-btn:active {
  transform: translateY(0);
}

.verite-popup__submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 閉じるエリア */
.verite-popup__close-area {
  text-align: center;
  margin: 0;
}

/* 閉じるリンク */
.verite-popup__close-btn {
  color: #999;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.verite-popup__close-btn:hover {
  color: #666;
}

/* ===========================================
   レスポンシブ
   =========================================== */

@media (max-width: 480px) {
  .verite-popup__content {
    padding: 24px 20px;
  }

  .verite-popup__message {
    font-size: 15px;
  }

  .verite-popup__submit-btn {
    padding: 14px 16px;
    font-size: 14px;
  }

  .verite-popup__comment-box {
    max-height: 100px;
  }
}
