/* フォーム関連スタイル */
.form-modal-content {
  width: 90%;
  height: 85vh;
  padding: 20px;
  position: relative;
}

.form-container {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.required {
  color: #dc3545;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-input.error {
  border-color: #dc3545;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.name-row {
  display: flex;
  gap: 10px;
}

.name-col {
  flex: 1;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-label {
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid #ced4da;
  border-radius: 3px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
}

.privacy-link {
  color: #007bff;
  text-decoration: underline;
}

.submit-group {
  text-align: center;
  margin-top: 20px;
}

.submit-button {
  min-width: 220px;
  padding: 12px 24px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover:not(:disabled) {
  background-color: #c82333;
}

.submit-button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
  opacity: 0.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .form-modal-content {
    width: 95%;
    height: 90vh;
    padding: 15px;
  }
  
  .name-row {
    flex-direction: column;
    gap: 0;
  }
  
  .name-col {
    margin-bottom: 16px;
  }
  
  .name-col:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .form-modal-content {
    width: 100%;
    height: 100vh;
    padding: 10px;
    border-radius: 0;
  }
  
  .modal {
    align-items: stretch !important;
    justify-content: stretch !important;
  }
}