/* 資料請求フォーム専用CSS - corporate-request.css */

/* メインコンテンツ */
.request-main {
  background: #f8fafc;
  min-height: calc(100vh - 80px);
  padding: 48px 24px;
}

.request-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ページヘッダー */
.request-header {
  text-align: center;
  margin-bottom: 48px;
}

/* ステップインジケーター */
.request-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.request-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.request-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  transition: all 0.3s ease;
}

.request-step-active .request-step-number {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.request-step-completed .request-step-number {
  background: #10b981;
  color: white;
}

.request-step-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.request-step-active .request-step-label {
  color: #10b981;
}

.request-step-completed .request-step-label {
  color: #10b981;
}

.request-step-line {
  flex: 1;
  height: 3px;
  background: #e2e8f0;
  margin: 0 16px;
  align-self: flex-start;
  margin-top: 23px;
  min-width: 60px;
}

.request-step-line-active {
  background: #10b981;
}

/* タイトル・説明 */
.request-title {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 16px;
}

.request-description {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
}

/* フォーム */
.request-form {
  background: white;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
  margin-bottom: 32px;
}

.request-form-group {
  margin-bottom: 32px;
}

.request-form-group:last-of-type {
  margin-bottom: 0;
}

/* ラベル */
.request-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.request-label-required {
  display: inline-block;
  padding: 3px 10px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 900;
  border-radius: 4px;
}

.request-label-optional {
  display: inline-block;
  padding: 3px 10px;
  background: #94a3b8;
  color: white;
  font-size: 11px;
  font-weight: 900;
  border-radius: 4px;
}

/* 入力フィールド */
.request-input,
.request-select,
.request-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #0f172a;
  background: white;
  transition: all 0.2s ease;
}

.request-input:focus,
.request-select:focus,
.request-textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.request-input::placeholder,
.request-textarea::placeholder {
  color: #cbd5e1;
}

.request-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  appearance: none;
}

.request-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ヘルプテキスト */
.request-help-text {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
  line-height: 1.5;
}

/* チェックボックス */
.request-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.request-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #10b981;
}

.request-checkbox-label {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  cursor: pointer;
}

.request-link {
  color: #10b981;
  text-decoration: underline;
  font-weight: 700;
}

.request-link:hover {
  color: #059669;
}

/* フォームアクション */
.request-form-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.request-button {
  width: 100%;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.request-button svg {
  width: 20px;
  height: 20px;
}

.request-button-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.request-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.request-button-secondary {
  background: white;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.request-button-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

/* 確認画面 */
.request-confirm {
  background: white;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
  margin-bottom: 32px;
}

.request-confirm-group {
  padding: 24px 0;
  border-bottom: 1px solid #f1f5f9;
}

.request-confirm-group:first-child {
  padding-top: 0;
}

.request-confirm-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.request-confirm-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

.request-confirm-value {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.6;
}

.request-confirm-value-multiline {
  white-space: pre-wrap;
  line-height: 1.7;
  font-weight: 500;
}

/* 完了画面 */
.request-complete {
  background: white;
  border-radius: 20px;
  padding: 64px 48px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
  margin-bottom: 32px;
  text-align: center;
}

.request-complete-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.request-complete-icon svg {
  width: 60px;
  height: 60px;
  color: white;
  stroke-width: 2.5;
}

.request-complete-title {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 20px;
}

.request-complete-description {
  font-size: 15px;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* 完了画面 - インフォメーションボックス */
.request-complete-info {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #10b981;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.request-complete-info-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.request-complete-info-content {
  flex: 1;
}

.request-complete-info-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 12px;
}

.request-complete-info-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

.request-complete-info-text strong {
  color: #10b981;
  font-weight: 900;
}

/* 完了画面 - 次のステップ */
.request-complete-next {
  margin-bottom: 48px;
  text-align: left;
}

.request-complete-next-title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 24px;
  text-align: center;
}

.request-complete-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.request-complete-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
}

.request-complete-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

.request-complete-step-content {
  flex: 1;
}

.request-complete-step-title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}

.request-complete-step-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* 完了画面 - 電話連絡 */
.request-complete-contact {
  background: #f8fafc;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.request-complete-contact-title {
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 16px;
}

.request-complete-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.2s ease;
}

.request-complete-contact-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
}

.request-complete-contact-phone svg {
  width: 28px;
  height: 28px;
}

.request-complete-contact-note {
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  margin-left: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .request-main {
    padding: 32px 16px;
  }

  .request-header {
    margin-bottom: 32px;
  }

  .request-step-indicator {
    margin-bottom: 32px;
  }

  .request-step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .request-step-label {
    font-size: 12px;
  }

  .request-step-line {
    margin: 0 8px;
    margin-top: 19px;
    min-width: 40px;
  }

  .request-title {
    font-size: 26px;
  }

  .request-description {
    font-size: 14px;
  }

  .request-form {
    padding: 32px 24px;
  }

  .request-form-group {
    margin-bottom: 24px;
  }

  .request-confirm {
    padding: 32px 24px;
  }

  .request-complete {
    padding: 48px 24px;
  }

  .request-complete-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
  }

  .request-complete-icon svg {
    width: 48px;
    height: 48px;
  }

  .request-complete-title {
    font-size: 26px;
  }

  .request-complete-info {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }

  .request-complete-info-icon {
    margin: 0 auto;
  }

  .request-complete-info-content {
    text-align: center;
  }

  .request-complete-contact-phone {
    font-size: 20px;
    padding: 14px 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .request-complete-contact-note {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .request-step-label {
    font-size: 11px;
  }

  .request-step-line {
    min-width: 30px;
  }

  .request-title {
    font-size: 22px;
  }

  .request-form {
    padding: 24px 20px;
  }

  .request-button {
    font-size: 15px;
    padding: 14px 24px;
  }

  .request-complete-title {
    font-size: 24px;
  }

  .request-complete-contact-phone {
    font-size: 18px;
  }
}

/* Validation error styles */
.request-form-input.is-invalid,
.request-form-select.is-invalid,
.request-form-textarea.is-invalid {
  border-color: #e53e3e;
  background-color: #fff5f5;
}

.request-form-input.is-invalid:focus,
.request-form-select.is-invalid:focus,
.request-form-textarea.is-invalid:focus {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.request-error {
  color: #e53e3e;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.4;
}
