/* EEFお問い合わせフォーム専用スタイル */
.contact-form-section {
  background-color: #f4f4f4;
  padding: 80px 0;
  min-height: auto;
}

.contact-form-section .section-heading {
  margin-top: 0;
  margin-bottom: 40px;
}

.contact-form-section .section-heading h4 {
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

.contact-form-section .section-heading p {
  color: #666;
  font-family: 'Noto Sans JP', sans-serif;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
  font-family: 'Noto Sans JP', sans-serif;
}

.form-container {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 48px;
  border: 1px solid #e0e0e0;
}

.form-cta-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid #e5e5e5;
}

.form-cta-card h5 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
  color: #333;
}

.form-cta-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.8;
}

.form-cta-card .btn {
  padding: 14px 40px;
  font-size: 1rem;
}

.thanks-icon {
  display: inline-flex;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #e8f6fd;
  color: #0da0e8;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.thanks-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
}

.thanks-lead {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 32px;
}

.thanks-actions .btn {
  margin: 0 8px;
  padding: 14px 36px;
  font-size: 1rem;
}

.thanks-actions .btn-outline-secondary {
  border: 2px solid #d1d5db;
  color: #374151;
  background: #fff;
}

.thanks-actions .btn-outline-secondary:hover {
  border-color: #0da0e8;
  color: #0da0e8;
}

.thanks-info {
  margin-top: 32px;
  color: #777;
  font-size: 0.95rem;
}

.entry-form {
  margin-bottom: 32px;
}

.form-error {
  background: #fee;
  color: #c33;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid #fcc;
  display: none;
}

.form-error.show {
  display: block;
}

.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
}

.form-label small {
  font-size: 0.85rem;
  color: #666;
  font-weight: normal;
}

.required {
  color: #f0843d;
  font-weight: bold;
}

.form-input,
.form-textarea,
.form-file {
  width: 100%;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #f0843d;
  box-shadow: 0 0 0 3px rgba(240,132,61,0.1);
}

.form-input.error,
.form-textarea.error {
  border-color: #e74c3c;
  background: #fef;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-file {
  border: 2px dashed #e0e0e0;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-file:hover {
  border-color: #f0843d;
  background: #fff4ea;
}

.form-file:focus {
  outline: none;
  border-color: #f0843d;
  box-shadow: 0 0 0 3px rgba(240,132,61,0.1);
}

.form-buttons {
  text-align: center;
  margin-top: 48px;
}

.form-buttons .btn {
  margin: 0 8px;
}

.btn-primary {
  background-color: #f0843d;
  color: #fff;
  border: none;
  padding: 16px 48px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.btn-primary:hover {
  background-color: #d46f2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240,132,61,0.3);
}

.btn-primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.form-navigation {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
}

.form-navigation .btn {
  background-color: #363e50;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
}

.form-navigation .btn:hover {
  background-color: #2a313f;
  transform: translateY(-2px);
}

/* reCAPTCHA用スタイル */
.g-recaptcha {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

/* 個人情報同意セクション */
.agreement-section {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  background: #fafafa;
  margin: 32px 0;
}

.agreement-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.agreement-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  flex: 1;
  min-width: 200px;
  font-family: 'Noto Sans JP', sans-serif;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #f0843d;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  background: #fff;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #f0843d;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.detail-btn {
  background: #f0843d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}

.detail-btn:hover {
  background: #d46f2c;
  transform: translateY(-1px);
}

.agreement-detail {
  display: none;
  margin-top: 20px;
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.agreement-detail.show {
  display: block;
}

.agreement-content {
  background: white;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e0e0e0;
  max-height: 400px;
  overflow-y: auto;
}

.agreement-content h4 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
  font-family: 'Montserrat', sans-serif;
}

.agreement-content h5 {
  color: #333;
  font-size: 1rem;
  margin: 20px 0 12px 0;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

.agreement-content p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
}

.agreement-content ul {
  margin: 12px 0;
  padding-left: 20px;
}

.agreement-content li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
}

.contact-info {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 6px;
  margin-top: 20px;
}

.contact-info h5 {
  margin-bottom: 8px;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

.contact-info p {
  margin: 0;
  line-height: 1.6;
  font-family: 'Noto Sans JP', sans-serif;
}

/* レスポンシブ対応 */
@media (max-width: 991px) {
  .contact-form-section {
    padding: 60px 0;
  }
  
  .contact-form-section .section-heading {
    margin-bottom: 30px;
  }
  
  .form-container {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .contact-form-section {
    padding: 40px 0;
  }
  
  .contact-form-section .section-heading {
    margin-bottom: 30px;
  }
  
  .contact-form-section .section-heading h4 {
    font-size: 24px;
  }
  
  .contact-form-section .section-heading p {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-subtitle {
    font-size: 14px;
  }
  
  .form-container {
    padding: 32px 24px;
    margin: 0 15px;
    border-radius: 12px;
  }
  
  .form-group {
    margin-bottom: 24px;
  }
  
  .form-input,
  .form-textarea,
  .form-file {
    padding: 12px;
    font-size: 0.95rem;
  }
  
  .form-buttons {
    margin-top: 32px;
  }
  
  .form-buttons .btn {
    display: block;
    width: 100%;
    margin: 8px 0;
  }
  
  .agreement-section {
    padding: 16px;
    margin: 24px 0;
  }
  
  .agreement-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .checkbox-label {
    min-width: auto;
    width: 100%;
  }
  
  .detail-btn {
    align-self: flex-end;
  }
  
  .agreement-content {
    padding: 16px;
    max-height: 300px;
  }
  
  .agreement-content h4 {
    font-size: 1rem;
  }
  
  .agreement-content h5 {
    font-size: 0.95rem;
  }
  
  /* フォーム内のrowをスマホで縦並びに */
  .contact-form-section .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .contact-form-section .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .contact-form-section {
    padding: 30px 0;
  }
  
  .form-container {
    padding: 24px 16px;
    margin: 0 10px;
  }
  
  .contact-form-section .section-heading h4 {
    font-size: 20px;
  }
  
  .contact-form-section .section-heading p {
    font-size: 13px;
  }
  
  .form-label {
    font-size: 0.95rem;
  }
  
  .form-input,
  .form-textarea,
  .form-file {
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .form-textarea {
    min-height: 100px;
  }
  
  .btn-primary {
    padding: 14px 32px;
    font-size: 0.95rem;
  }
}
