/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Multi-Step Form Styles - あなたの未来応援キャンペーン & こどもの未来応援CP共通スタイル */

/* Container and Base Styles */
.multi-step-form {
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: #333;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  position: relative;
}

/* Progress Bar */
.form-progress {
  margin-bottom: 40px;
}

.progress-bar {
  height: 8px;
  background-color: #f2f2f2;
  border-radius: 4px;
  position: relative;
  margin-bottom: 15px;
}

.progress-indicator {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 20%; /* Initial width - 5ステップ対応に修正 */
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.progress-steps .step {
  width: 20%; /* 5ステップ対応に修正 */
  text-align: center;
  font-size: 14px;
  color: #888;
  position: relative;
  transition: color 0.3s ease;
}

.progress-steps .step.active {
  color: #4CAF50;
  font-weight: 600;
}

.progress-steps .step::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background: #f2f2f2;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin: 0 auto 8px;
  transition: all 0.3s ease;
}

.progress-steps .step.active::before {
  background: #4CAF50;
  border-color: #4CAF50;
}

/* Form Steps */
.form-step {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Step Header */
.step-header {
  margin-bottom: 30px;
  text-align: center;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, #4CAF50, transparent);
  margin: 8px auto 0;
}

/* Form Layout */
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px 20px;
}

.form-field {
  flex: 1;
  padding: 0 10px;
  min-width: 250px;
}

.form-field.full-width {
  flex: 0 0 100%;
}

/* Labels and Inputs */
.form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}

.wpcf7-form label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-date,
.wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 5px;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #f9f9f9;
}

.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-date:focus,
.wpcf7-form .wpcf7-tel:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-select:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  outline: none;
  background-color: #fff;
}

/* Checkboxes and Radio Buttons */
.wpcf7-form .wpcf7-checkbox,
.wpcf7-form .wpcf7-radio {
  display: block;
  margin-bottom: 20px;
}

.wpcf7-list-item {
  display: block;
  margin: 0 0 10px;
  position: relative;
}

.wpcf7-list-item label {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.wpcf7-list-item label:hover {
  background-color: #f0f9f0;
  border-color: #c8e6c9;
}

.wpcf7-list-item input:checked ~ .wpcf7-list-item-label {
  background-color: #e8f5e9;
  border-color: #a5d6a7;
}

/* Insurance Selection Specific Styling */
.insurance-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.insurance-options .wpcf7-list-item {
  min-width: 250px;
}

.insurance-options .wpcf7-list-item label {
  padding: 20px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.insurance-options .wpcf7-list-item label:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Question Blocks */
.question-block {
  margin-bottom: 30px;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.question-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

/* Navigation Buttons */
.step-navigation {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.nav-buttons p {
  display: flex;
  justify-content: space-between;
}

button.btn-prev,
button.btn-next,
button.btn-submit {
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 16px;
}

button.btn-prev {
  background-color: #e0e0e0;
  color: #666;
}

button.btn-next,
button.btn-submit {
  background-color: #4CAF50;
  color: white;
}

button.btn-prev:hover {
  background-color: #d5d5d5;
}

button.btn-next:hover,
button.btn-submit:hover {
  background-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hide actual submit button */
.hidden-submit {
  display: none;
}

/* JA Details */
.ja-details,
.ja-details-fire {
  margin-top: 15px;
  padding: 20px;
  background-color: #f0f8ff;
  border-radius: 6px;
  border: 1px dashed #b3e5fc;
}

/* Required Field Indicator */
.required {
  color: #f44336;
  margin-left: 3px;
}

/* Error Message Styling */
.wpcf7-not-valid-tip {
  color: #f44336;
  font-size: 0.9em;
  margin-top: 5px;
  margin-bottom: 10px;
  display: block;
}

div.wpcf7-validation-errors {
  border: none;
  background-color: #fff4e5;
  color: #e65100;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  position: relative;
  padding-left: 50px;
}

div.wpcf7-validation-errors:before {
  content: "⚠️";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

div.wpcf7-mail-sent-ok {
  border: none;
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  position: relative;
  padding-left: 50px;
}

div.wpcf7-mail-sent-ok:before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .multi-step-form {
    padding: 20px 15px;
  }
  
  .form-field {
    flex: 0 0 100%;
    margin-bottom: 15px;
  }
  
  .progress-steps .step {
    font-size: 12px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .question-block {
    padding: 15px;
  }
  
  .question-title {
    font-size: 16px;
  }
  
  .nav-buttons p {
    flex-direction: column;
    gap: 10px;
  }
  
  button.btn-prev,
  button.btn-next,
  button.btn-submit {
    width: 100%;
  }
}


.thanks-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: sans-serif;
    line-height: 1.6;
  }
  
  .thanks-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
  }
  
  .thanks-header h1 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 28px;
  }
  
  .thanks-subheader {
    font-size: 18px;
    color: #666;
  }
  
  .thanks-content {
    margin-bottom: 40px;
    font-size: 16px;
  }
  
  .thanks-content p {
    margin-bottom: 15px;
  }
  
  .thanks-action {
    text-align: center;
    margin: 40px 0;
  }
  
  .home-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .home-button:hover {
    background-color: #45a049;
  }
  
  .thanks-contact {
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
  }
  
  .thanks-contact p {
    margin: 5px 0;
  }
  
  @media (max-width: 600px) {
    .thanks-header h1 {
      font-size: 24px;
    }
    
    .thanks-content {
      font-size: 15px;
    }
  }

/* メール認証フォームスタイル - あなたの未来応援キャンペーン & こどもの未来応援CP共通 */
.email-confirmation-wrapper {
  background-color: #f9f9f9;
  min-height: 100vh;
  padding: 50px 20px;
  box-sizing: border-box;
}

.email-confirmation-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.confirmation-header {
  text-align: center;
  padding: 30px 20px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #eee;
}

.confirmation-header h1 {
  color: #4CAF50;
  margin: 0 0 10px;
  font-size: 28px;
}

.confirmation-header .subheader {
  color: #666;
  margin: 0;
  font-size: 16px;
}

.confirmation-content {
  padding: 40px 20px;
}

.confirmation-card {
  background-color: #fff;
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.card-icon {
  margin-bottom: 20px;
}

.confirmation-card h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
}

.confirmation-card p {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-field input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #f9f9f9;
}

.form-field input:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  outline: none;
  background-color: #fff;
}

.form-privacy {
  margin-bottom: 20px;
  font-size: 14px;
  color: #888;
}

.form-actions {
  text-align: center;
}

button.confirmation-submit {
  padding: 12px 25px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button.confirmation-submit:hover {
  background-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.confirmation-message {
  padding: 30px;
  text-align: center;
}

.message-success {
  background-color: #e8f5e9;
  padding: 30px;
  border-radius: 8px;
}

.message-icon {
  margin-bottom: 20px;
}

.message-success h2 {
  color: #2e7d32;
  margin-bottom: 20px;
}

.message-success p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.email-note {
  color: #e65100;
  font-size: 14px;
}

@media (max-width: 768px) {
  .confirmation-content {
    padding: 30px 15px;
  }
  
  .confirmation-card {
    padding: 20px;
  }
  
  .confirmation-header h1 {
    font-size: 24px;
  }
}

/* こどもの未来応援CP独自のスタイル */
.terms-agreement-section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f0f8ff;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.terms-agreement-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.agreement-checkbox {
  margin-bottom: 15px;
}

.agreement-checkbox label {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.agreement-checkbox label:hover {
  background-color: #f0f9f0;
  border-color: #c8e6c9;
}

.agreement-checkbox input:checked ~ label {
  background-color: #e8f5e9;
  border-color: #a5d6a7;
}

.agreement-validation {
  margin-top: 10px;
  color: #f44336;
  font-weight: 500;
}

.agreement-button {
  text-align: center;
  margin-top: 25px;
}

button#agreement-submit {
  padding: 12px 25px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button#agreement-submit:hover {
  background-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 子供情報フォームスタイル */
.children-info-section {
  margin-bottom: 30px;
}

.child-form {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #81C784;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.child-form h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.add-child-button {
  text-align: center;
  margin: 20px 0;
}

button.btn-add-child {
  padding: 10px 20px;
  background-color: #81C784;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

button.btn-add-child:hover {
  background-color: #66BB6A;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.expected-birth-row {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #e0e0e0;
}

/* その他入力フィールドのスタイル */
.other-input-field {
  margin-top: 10px;
  padding: 15px;
  background-color: #f0f9f0;
  border-radius: 6px;
  border: 1px dashed #a5d6a7;
}

.other-input-field label {
  font-weight: 500;
  color: #2e7d32;
  margin-bottom: 8px;
}

/* 同意ステップのスタイル */
.agreement-section {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-bottom: 30px;
}

.agreement-checkboxes {
  margin-bottom: 15px;
}

.agreement-checkboxes .wpcf7-list-item {
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid #4CAF50;
  padding-bottom: 5px;
}

.agreement-checkboxes .wpcf7-list-item label {
  font-weight: 500;
}

.agreement-notice {
  font-size: 14px;
  color: #e53935;
  margin-top: 10px;
  text-align: center;
}

.agreement-checkboxes .wpcf7-not-valid-tip {
  margin-top: 8px;
  margin-bottom: 8px;
  color: #e53935;
  font-size: 14px;
  text-align: center;
  display: block;
  background-color: rgba(229, 57, 53, 0.1);
  padding: 8px;
  border-radius: 4px;
}
/* 同意ステップのスタイル */
.agreement-section {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-bottom: 30px;
}

.agreement-notice {
  font-size: 14px;
  color: #e53935;
  margin-top: 10px;
  text-align: center;
}

.agreement-checkboxes {
  margin-bottom: 15px;
}

.agreement-checkboxes .wpcf7-list-item {
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid #4CAF50;
  padding-bottom: 5px;
}

.agreement-checkboxes .wpcf7-not-valid-tip {
  margin-top: 8px;
  margin-bottom: 8px;
  color: #e53935;
  font-size: 14px;
  text-align: center;
  display: block;
  background-color: rgba(229, 57, 53, 0.1);
  padding: 8px;
  border-radius: 4px;
}
