@charset "UTF-8";
.sec-4 h4 {
  font-size: 1.9rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #00C851;
  display: inline-block;
}

dl.form-dl + h4 {
  margin-top: 3rem;
}

.form-container {
  background: white;
  padding: 40px;
  -moz-border-radius: 12px;
       border-radius: 12px;
  -moz-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
       box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 90%;
}

.section-header {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #f0f0f0;
}

.section-header::before {
  content: '';
  width: 4px;
  height: 24px;
  background-color: #00C851;
  margin-right: 12px;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.form-group {
  margin-bottom: 15px;
  width: 48%;
}

.form-label {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.required-badge {
  background-color: #00C851;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  -moz-border-radius: 4px;
       border-radius: 4px;
  margin-left: 8px;
}

.form-input {
  width: 100%;
  max-width: 100%;
  -moz-box-sizing: border-box;
       box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #ddd;
  -moz-border-radius: 6px;
       border-radius: 6px;
  font-size: 16px;
  background-color: white;
  -webkit-transition: border-color 0.3s, box-shadow 0.3s;
  -moz-transition: border-color 0.3s, box-shadow 0.3s, -moz-box-shadow 0.3s;
  transition: border-color 0.3s, box-shadow 0.3s;
  transition: border-color 0.3s, box-shadow 0.3s, -moz-box-shadow 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #00C851;
  -moz-box-shadow: 0 0 0 3px rgba(0, 200, 81, 0.1);
       box-shadow: 0 0 0 3px rgba(0, 200, 81, 0.1);
}

.form-row {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
     -moz-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  width: 100%;
}

.preference-section {
  margin-bottom: 20px;
  padding: 25px;
  border: 1px solid #e8e8e8;
  -moz-border-radius: 8px;
       border-radius: 8px;
  background-color: #fafbfc;
}

.preference-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #00C851;
  display: inline-block;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  -webkit-transform: translateY(-50%);
     -moz-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  color: #00C851;
  pointer-events: none;
  font-size: 12px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  padding-right: 40px;
  width: 100%;
  -moz-box-sizing: border-box;
       box-sizing: border-box;
}

div.note {
  background-color: #e8f5e8;
  padding: 16px;
  -moz-border-radius: 8px;
       border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #00C851;
  font-size: 14px;
  line-height: 1.6;
}

.error-message {
  color: #dc3545;
  font-size: 13px;
  margin-top: 6px;
  display: none;
  padding: 8px 12px;
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  -moz-border-radius: 4px;
       border-radius: 4px;
}

.form-hint {
  color: #666;
  font-size: 13px;
  margin-top: 4px;
}

/* Flatpickrのカスタマイズ */
.flatpickr-calendar {
  font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

.flatpickr-day.disabled {
  color: #ccc !important;
  background-color: #f5f5f5 !important;
  cursor: not-allowed !important;
}

.flatpickr-day.disabled:hover {
  background-color: #f5f5f5 !important;
  color: #ccc !important;
}

@media (max-width: 768px) {
  .form-container {
    padding: 20px;
  }
  .form-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .form-group {
    width: 100%;
  }
  .section-title {
    font-size: 18px;
  }
  .preference-title {
    font-size: 16px;
  }
}
